]> xenbits.xensource.com Git - people/royger/freebsd.git/commit
Let all FEATURE()s use the same Prometheus metric.
authored <ed@FreeBSD.org>
Wed, 14 Dec 2016 13:05:04 +0000 (13:05 +0000)
committered <ed@FreeBSD.org>
Wed, 14 Dec 2016 13:05:04 +0000 (13:05 +0000)
commite8ba53b832404c34f14dfc5c1ed726b3f462922f
treec232ddce61093c834fce15b254fee79c0d2fdcaf
parenta9bef418ec37a3525d5f4a28f84199f2b57efed5
Let all FEATURE()s use the same Prometheus metric.

Without this change, every individual FEATURE() declaration would have
an individual metric in Prometheus. Though this wouldn't be harmful, it
would look very cluttered.

By letting it use a single metric with the name of the feature attached
as a label, it also becomes easier to search, as you can apply regex
matching, etc.

Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D8775
sys/sys/sysctl.h