HomeFreeBSD

prometheus_sysctl_exporter(8): filter output using a regex

Description

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)

Details

Provenance
rewAuthored on Oct 8 2021, 1:00 AM
Reviewer
0mp
Differential Revision
D32269: prometheus_sysctl_exporter(8): filter output using a regex
Parents
rG850aecac5866: qlnxe: Fix typos in two error messages
Branches
Unknown
Tags
Unknown