mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 06:45:27 +01:00
feat: enable native histograms in operator metrics
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
* [FEATURE] Add `podManagementPolicy` field for `Prometheus`, `PrometheusAgent`, `Alertmanager` and `ThanosRuler` CRDs. #8119
|
||||
* [FEATURE] Add `updateStrategy` field for `Prometheus`, `PrometheusAgent`, `Alertmanager` and `ThanosRuler` CRDs. #8202
|
||||
* [ENHANCEMENT] Use `.spec.minReadySeconds` to delay the first flush of aggregation groups in Alertmanager. #8201
|
||||
* [ENHANCEMENT] Update operator instrumentation to expose native histograms. #8194
|
||||
|
||||
## 0.87.1 / 2025-12-10
|
||||
|
||||
|
||||
@@ -133,17 +133,23 @@ func newWorkQueueMetricsProvider(reg prometheus.Registerer) *workQueueMetricsPro
|
||||
),
|
||||
latency: prometheus.NewHistogramVec(
|
||||
prometheus.HistogramOpts{
|
||||
Name: "prometheus_operator_workqueue_latency_seconds",
|
||||
Help: "Histogram of latency for the queue",
|
||||
Buckets: []float64{.1, .5, 1, 5, 10},
|
||||
Name: "prometheus_operator_workqueue_latency_seconds",
|
||||
Help: "Histogram of latency for the queue",
|
||||
Buckets: []float64{.1, .5, 1, 5, 10},
|
||||
NativeHistogramBucketFactor: 1.1,
|
||||
NativeHistogramMaxBucketNumber: 100,
|
||||
NativeHistogramMinResetDuration: 1 * time.Hour,
|
||||
},
|
||||
[]string{"name"},
|
||||
),
|
||||
workDuration: prometheus.NewHistogramVec(
|
||||
prometheus.HistogramOpts{
|
||||
Name: "prometheus_operator_workqueue_work_duration_seconds",
|
||||
Help: "Histogram of work duration for the queue",
|
||||
Buckets: []float64{.1, .5, 1, 5, 10},
|
||||
Name: "prometheus_operator_workqueue_work_duration_seconds",
|
||||
Help: "Histogram of work duration for the queue",
|
||||
Buckets: []float64{.1, .5, 1, 5, 10},
|
||||
NativeHistogramBucketFactor: 1.1,
|
||||
NativeHistogramMaxBucketNumber: 100,
|
||||
NativeHistogramMinResetDuration: 1 * time.Hour,
|
||||
},
|
||||
[]string{"name"},
|
||||
),
|
||||
@@ -232,9 +238,12 @@ func NewResourceReconciler(
|
||||
})
|
||||
|
||||
reconcileDuration := prometheus.NewHistogram(prometheus.HistogramOpts{
|
||||
Name: "prometheus_operator_reconcile_duration_seconds",
|
||||
Help: "Histogram of reconcile operations",
|
||||
Buckets: []float64{.1, .5, 1, 5, 10},
|
||||
Name: "prometheus_operator_reconcile_duration_seconds",
|
||||
Help: "Histogram of reconcile operations",
|
||||
Buckets: []float64{.1, .5, 1, 5, 10},
|
||||
NativeHistogramBucketFactor: 1.1,
|
||||
NativeHistogramMaxBucketNumber: 100,
|
||||
NativeHistogramMinResetDuration: 1 * time.Hour,
|
||||
})
|
||||
|
||||
statusTotal := prometheus.NewCounter(prometheus.CounterOpts{
|
||||
|
||||
Reference in New Issue
Block a user