pmacct-prometheus

Crates.iopmacct-prometheus
lib.rspmacct-prometheus
version0.2.0
sourcesrc
created_at2024-08-26 13:31:06.445261
updated_at2024-10-17 13:38:08.0731
descriptionPrometheus metrics endpoint for pmacct derived flow stats.
homepagehttps://gitlab.com/LordGaav/pmacct-prometheus
repositoryhttps://gitlab.com/LordGaav/pmacct-prometheus
max_upload_size
id1352225
size166,529
Nick Douma (LordGaav)

documentation

README

pmacct-prometheus

Current version: 0.2.0

Prometheus metrics endpoint for pmacct accounting data.

Modes

This tool can be run in either single, parse-csv or serve mode.

In single and parse-csv mode, Prometheus metrics will be generated and output to stdout. The difference is that single will use the pmacct binary to get realtime information from the running daemon, while parse-csv will process a file that was generated and stored earlier by that same command.

In serve mode, a simple HTTP server will be started at --listen-address and --listen-port with a single endpoint at /metrics. TLS encryption or any type of authentication is not supported.

Configuration

Configuration can be done with command line arguments. All CLI arguments can also be specified as environment variable.

License

GPL-3.0-only, see LICENSE file for details.

Commit count: 54

cargo fmt