JSON output as prometheus metric format? #1403
Labels
A-config
Area: Related to the config file functionality and format
C-enhancement
Category: New feature or request
good first issue
Call for participation: Good for newcomers
Hey!
I've been using rustic for a bit, and I recently submitted [a module for easily using it to NixOS](https://github.com/NixOS/ nixpkgs/pull/373042) (my personal distribution of choice).
As part of it, I added one thing useful at least to me: parsing the JSON output of
--json
and turning it into prometheus metrics that could then be exported via the node-exporter.But upon thinking about it some more I'm curious: are you interested in upstreaming this work, so that
rustic
could gain a--prometheus
flag that'd output the result as prometheus metrics, rather than raw JSON?TBH the JSON currently output is not very nice to work with, eg. because parsing times (esp. when TZ is not UTC) is hard — hence the hacks used in the NixOS module's script to work around it.
WDYT?
Anyway, thank you for all you're doing with
rustic
!The text was updated successfully, but these errors were encountered: