]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Let all FEATURE()s use the same Prometheus metric.
authorEd Schouten <ed@FreeBSD.org>
Wed, 14 Dec 2016 13:05:04 +0000 (13:05 +0000)
committerEd Schouten <ed@FreeBSD.org>
Wed, 14 Dec 2016 13:05:04 +0000 (13:05 +0000)
commit977ffc4c2aefdeb70cee048cfae190f508d63997
treec232ddce61093c834fce15b254fee79c0d2fdcaf
parentae1571536003b29f527ab7aedc0c61d783ecbd65
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