]> 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>
Sun, 10 Oct 2021 18:18:29 +0000 (10:18 -0800)
commit61156558d2a53e88c139561458420f2e62f6aa06
tree0ab13cb858576d25041b10d9fea52947f43f17f8
parent850aecac5866aa86fb8170eda61c4ec94bd5fc7d
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

(cherry picked from commit 8ff2b52241400f2b5c2287b91e6e12b97ffd5773)
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.8
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.c