diff --git a/helm/prometheus-rules/templates/kaas/bigmac/alerting-rules/dex.rules.yml b/helm/prometheus-rules/templates/kaas/bigmac/alerting-rules/dex.rules.yml index a42ef205b..efc37f478 100644 --- a/helm/prometheus-rules/templates/kaas/bigmac/alerting-rules/dex.rules.yml +++ b/helm/prometheus-rules/templates/kaas/bigmac/alerting-rules/dex.rules.yml @@ -41,7 +41,12 @@ spec: annotations: description: '{{`dex-operator did not register a dex-app in giantswarm namespace.`}}' opsrecipe: dex-operator/ + {{- if .Values.mimir.enabled }} + expr: absent(dex_operator_idp_secret_expiry_time{app_namespace="giantswarm", cluster_type="management_cluster", cluster_id="{{ .Values.managementCluster.name }}", installation="{{ .Values.managementCluster.name }}", provider="{{ .Values.managementCluster.provider.kind }}", pipeline="{{ .Values.managementCluster.pipeline }}"}) + {{- else }} expr: absent(dex_operator_idp_secret_expiry_time{app_namespace="giantswarm", cluster_type="management_cluster"}) == 1 + {{- end }} + expr: for: 30m labels: area: kaas