opnsense-src/usr.sbin/prometheus_sysctl_exporter
Alan Somers e4f508d5a2 prometheus_sysctl_exporter: fix metric aliasing
When exporting sysctls to Prometheus, the exporter replaces "." with
"_".  This caused several metrics to alias, confusing the Prometheus
server.  Fix it by:

* Renaming the "tcp_log_bucket" UMA zone to "tcp_log_id_bucket".  Also,
  rename "tcp_log_node" to "tcp_log_id_node" for consistency.

* Not exporting sysctls with "(LEGACY)" in the description.  That is
  used by ZFS sysctls that have been replaced by others, many of which
  alias to the same Prometheus metric name (like "vfs.zfs.arc_max" and
  "vfs.zfs.arc.max").

PR:		259607
Reported by:	delphij
Sponsored by:	Axcient
Reviewed by:	delphij,rew,thj
Differential Revision: https://reviews.freebsd.org/D34952

(cherry picked from commit 8c47d8f538)
2022-05-12 14:40:05 -06:00
..
Makefile
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
prometheus_sysctl_exporter.8 prometheus_sysctl_exporter(8): filter output using a regex 2021-10-10 10:15:18 -08:00
prometheus_sysctl_exporter.c prometheus_sysctl_exporter: fix metric aliasing 2022-05-12 14:40:05 -06:00