Skip to content

Convert arbitrary JSON data to the Prometheus readable .prom format.

License

Notifications You must be signed in to change notification settings

semaphor-dk/rusty-json-prom-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rustbased exporter that converts arbitrary JSON to the .prom format.

This small application works great in tandem with the Prometheus node-exporter. If you place the converted JSON -> prom data in the /var/lib/prometheus/node-exporter/ directory, the metrics will be added to the node-exporter output.

Build the project using Cargo:

cargo build --release

The binary can then be found under target/release/rusty-json-prom-exporter

Run the binary as:

./rusty-json-prom-exporter [url] [filename]

or better yet, set up a linux systemd service:

[Unit]
Description=Exporter that converts arbitrary JSON to the .prom data format - written in Rust.

[Service]
ExecStart=<path to binary> <url> <filename>.prom
Restart=always
User=root

[Install]
WantedBy=multi-user.target

About

Convert arbitrary JSON data to the Prometheus readable .prom format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages