| Crates.io | pmacct-prometheus |
| lib.rs | pmacct-prometheus |
| version | 0.2.0 |
| created_at | 2024-08-26 13:31:06.445261+00 |
| updated_at | 2024-10-17 13:38:08.0731+00 |
| description | Prometheus metrics endpoint for pmacct derived flow stats. |
| homepage | https://gitlab.com/LordGaav/pmacct-prometheus |
| repository | https://gitlab.com/LordGaav/pmacct-prometheus |
| max_upload_size | |
| id | 1352225 |
| size | 166,529 |
Current version: 0.2.0
Prometheus metrics endpoint for pmacct accounting data.
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 can be done with command line arguments. All CLI arguments can also be specified as environment variable.
GPL-3.0-only, see LICENSE file for details.