#prometheus-metrics #prometheus #metrics #networking #pmacct

app pmacct-prometheus

Prometheus metrics endpoint for pmacct derived flow stats

3 unstable releases

new 0.2.0 Oct 17, 2024
0.1.2 Aug 26, 2024
0.1.1 Aug 26, 2024

#2260 in Command line utilities

Download history 227/week @ 2024-08-22 46/week @ 2024-08-29 28/week @ 2024-09-12 19/week @ 2024-09-19 6/week @ 2024-09-26 1/week @ 2024-10-03

54 downloads per month

GPL-3.0-only

66KB
1.5K SLoC

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.

Dependencies

~39–56MB
~1M SLoC