]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
prometheus_sysctl_exporter(8): filter output using a regex
authorRobert Wing <rew@FreeBSD.org>
Fri, 8 Oct 2021 01:00:27 +0000 (17:00 -0800)
committerRobert Wing <rew@FreeBSD.org>
Fri, 8 Oct 2021 01:02:57 +0000 (17:02 -0800)
commit8ff2b52241400f2b5c2287b91e6e12b97ffd5773
tree371b80222b6191eaa3d8719875b08501e671d205
parentb5cadc643e853fa4cb23e5315e6f40bf9979a9c0
prometheus_sysctl_exporter(8): filter output using a regex

Add two options, -i and -e, for filtering prometheus metrics.

Each option takes a regular expression as an argument. The provided
regex will be tested against the prometheus metric name.

The -i option includes metrics matching the given regex.
The -e option excludes metrics matching the given regex.

Sponsored by:   Modirum MDPay
Sponsored by:   Klara Inc.
Reviewed by: 0mp, debdrup
Differential Revision: https://reviews.freebsd.org/D32269
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.8
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.c