Write hledger data into influxdb
  • Go 94.8%
  • Dockerfile 5.2%
Find a file
2026-03-30 13:54:29 -05:00
.github/workflows Try to fix docker release 2026-03-30 13:54:29 -05:00
cmd/hledger-influx Try to fix docker release 2026-03-30 13:50:31 -05:00
grafana Add grafana dashboard 2023-03-06 20:18:06 -06:00
pkg/hledger-influx Refactor project with tests and github actions 2023-03-06 19:42:01 -06:00
Dockerfile Add dockerfile and publish to github registry 2026-03-30 13:40:53 -05:00
go.mod Add dockerfile and publish to github registry 2026-03-30 13:40:53 -05:00
go.sum Add dockerfile and publish to github registry 2026-03-30 13:40:53 -05:00
README.md Add grafana dashboard 2023-03-06 20:18:06 -06:00

hledger-influx

This is a project for exporting an hledger ledger into influxdb line format.

Usage

Use the bal, -O csv, and -DH options of hledger bal to print a csv report in the right format for this program:

hledger bal --infer-market-prices -V -X=$ not:tag:clopen -O csv -DH --transpose | hledger-influx | influx write ...

Caveats / Gotchas

  1. This program expects a single currency/commodity. In the example above, it converts everything to USD with -X=$ (along with --infer-market-prices).
  2. It only works with USD/$ currency symbols.

Grafana Dashboard

JSON for a basic grafana dashboard lives in grafana/ directory.