]> xenbits.xensource.com Git - people/royger/freebsd.git/commit
Add labels to sysctls related to clocks.
authored <ed@FreeBSD.org>
Wed, 14 Dec 2016 12:56:58 +0000 (12:56 +0000)
committered <ed@FreeBSD.org>
Wed, 14 Dec 2016 12:56:58 +0000 (12:56 +0000)
commit93bcdbae646153b1fe87e66327d5e9fc85ff86d8
tree0bd47c84f0eb8fc376f9dd990150bf15b115f0ce
parentba13e5862b213fd5b58497cb0e0d7ba7afcfbb38
Add labels to sysctls related to clocks.

Sysctls like kern.eventtimer.et.*.quality currently embed the name of
the clock device. This is problematic for the Prometheus metrics
exporter for two reasons:

- Some of those clocks have dashes in their names, which Prometheus
  doesn't allow to be used in metric names.
- It doesn't allow for extracting the same property of all clocks on the
  system from within a single query.

Attach these nodes to have a label, so that the Prometheus metrics
exporter gives these metric a uniform name with the name of the clock
attached as a label.

Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D8775
sys/kern/kern_et.c
sys/kern/kern_tc.c