mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-31 04:04:51 +00:00
metrics: improve feature discovery duration metric
Rename the "NodeName" prometheus label to "node", aligning with common prometheus/kubernetes conventions. Also reconfigure the prometheus histogram buckets (now 10ms to 1s) to better match the expected sample range.
This commit is contained in:
parent
47f621d970
commit
5091fef84b
1 changed files with 4 additions and 3 deletions
|
@ -38,10 +38,11 @@ var (
|
|||
|
||||
featureDiscoveryDuration = prometheus.NewHistogramVec(
|
||||
prometheus.HistogramOpts{
|
||||
Name: featureDiscoveryDurationQuery,
|
||||
Help: "Time taken to discover features",
|
||||
Name: featureDiscoveryDurationQuery,
|
||||
Help: "Time taken to discover features",
|
||||
Buckets: []float64{0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1},
|
||||
},
|
||||
[]string{"NodeName"},
|
||||
[]string{"node"},
|
||||
)
|
||||
buildInfo = prometheus.NewGauge(prometheus.GaugeOpts{
|
||||
Name: buildInfoQuery,
|
||||
|
|
Loading…
Add table
Reference in a new issue