How to troubleshoot PrometheusDuplicateTimestamps alerts in RHOCP 4
Issue
-
The following
alert
is firing in the cluster:description: Prometheus openshift-monitoring/prometheus-k8s-1 is dropping 0.007407 samples/s with different values but duplicated timestamp. runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-monitoring-operator/PrometheusDuplicateTimestamps.md summary: Prometheus is dropping samples with duplicate timestamps.
-
Prometheus pods showing the error:
ts=2025-01-24T09:14:41.847Z caller=scrape.go:1744 level=warn component="scrape manager" scrape_pool=serviceMonitor/openshift-monitoring/openshift-state-metrics/0 target=https://10.128.2.9:8443/metrics msg="Error on ingesting samples with different value but same timestamp" num_dropped=1
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Prometheus
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.