kubernetes-monitoring / kubernetes-mixin

A set of Grafana dashboards and Prometheus alerts for Kubernetes.
Apache License 2.0
2.12k stars 596 forks source link

KubeClientCertificateExpiration warning alert from 7 days to 2 days for AKS running on Azure stack HCI #750

Closed dadimah closed 1 month ago

dadimah commented 2 years ago

Hi,

I would like to change the below alert from 7 days to 2 days since AKS running on Azure stack HCI nodes will rotate the Client certificate every 4 days. In that case below condition is invalid for AKS-HCI Kubernetes.

We're using the helm chart to deploy the Kube-Prometheus stack and all Prometheus rules are attached to POD via configmap of prometheus rules. is there any way we can override this alert condition locally? Please suggest.

Helm Chart Repo: https://prometheus-community.github.io/helm-charts'

Alert:

Alert firing in prometheus

image

metalmatze commented 2 years ago

You can change those in the provided config when using the mixin via jsonnet: https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/3f040a86025a33d37c6125ab00ebb1592c604518/alerts/kube_apiserver.libsonnet#L9-L10

If this isn't possible via some Helm chart then you'd need to raise an issue with those maintainers :wink:

github-actions[bot] commented 1 month ago

This issue has not had any activity in the past 30 days, so the stale label has been added to it.

Thank you for your contributions!