Prometheus Installed Using Helm Not Alerting PersistsentVolumeClaim Full Alerts.

Problem

Alerts are not fired in Prometheus when PersistsentVolumeClaims are filled or exceeded the volume limits set for alerts.

Environment

  • Platform9 Managed Kubernetes - v5.5 and Higher

Cause

The query used in the upstream prometheus rule to trigger the KubePersistentVolumeFillingUp is giving Empty query result.

Faulty Query for KubePersistentVolumeFillingUp
Copy

Rules used in the prometheusrule kubernetes object:

kubectl -n <namespace> edit prometheusrule
Copy

Resolution

This issue is resolved in PMK-5.9 release- Tracked in the internal jira: PMK-5701

Workaround

Modify the query compatible with the Platform9 Managed Kubernetes environment as shown below in the prometheusrule kubernetes object.

Prometheus Alert Query
Copy

Once you are getting the right result for the query, you can edit the existing prometheus rules with working query using the kubectl command:

Kubectl command
Copy

Once edited prometheus should automatically detect the change in rule and fire the alerts if PVCs have exceeded the space limits.

Additional Information

The workaround suggested will not persist across upgrades unless changes made in the helm chart.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard