3 unstable releases
0.2.0 | Oct 17, 2024 |
---|---|
0.1.2 | Aug 26, 2024 |
0.1.1 | Aug 26, 2024 |
#2576 in Command line utilities
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