]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Implement Prometheus
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 6 Aug 2025 00:42:34 +0000 (18:42 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 6 Aug 2025 00:42:34 +0000 (18:42 -0600)
commit39af0e036e9e21663e81ea9793720be27e36649b
treecf46e1014361cd615b6bf3c773bcfeb6745e2878
parentd48f355ed4a1486b0e90d9c727021cfae702093d
Implement Prometheus

Fixes #50.

For now, it only implements the following stats:

fort_valid_vrps_total{ta="<TA>",proto="ipv<IP>"}
Total VRPs generated from TA <TA> (and the given
protocol) during the previous cycle.
"<TA>" is inferred from the TAL's file name.

fort_rtr_current_connections
Number of active RTR clients.

To activate the server, set --mode=server and --prometheus.port to an
allowed and available port number.

Adds libmicrohttpd as a dependency.
13 files changed:
configure.ac
src/Makefile.am
src/config.c
src/config.h
src/main.c
src/object/tal.c
src/prometheus.c [new file with mode: 0644]
src/prometheus.h [new file with mode: 0644]
src/rtr/db/db_table.c
src/rtr/db/db_table.h
src/rtr/rtr.c
src/stats.c [new file with mode: 0644]
src/stats.h [new file with mode: 0644]