PrometheusTargetSyncFailure alert troubleshooting in OpenShift Container Platform 4
Issue
PrometheusTargetSyncFailure Alert is firing in the cluster
name: PrometheusTargetSyncFailure
expr: increase(prometheus_target_sync_failed_total{job="prometheus"}[30m]) > 0
for: 5m
labels:
severity: critical
annotations:
description: {{ printf "%.0f" $value }} targets in Prometheus {{$labels.instance}} have failed to sync because invalid configuration was supplied.
summary: Prometheus has failed to sync targets.
Environment
- Red Hat Openshift Container Platform 4 [RHOCP].
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.