May 12, 2025

Contributors

Introducing dash0-enabled Annotation for Check Rules

The dash0-enabled annotation allows you disable or enable of check rules in Infrastructure-as-Code.

This new dash0-enabled annotation works on an individual check rule basis. It allows you to temporarily or permanently disable or enable check rules via the Dash0 UI, APIs or Dash0 Operator

yaml
prometheus-example-rule.yml
1234567891011121314151617181920
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
prometheus: example
role: alert-rules
name: prometheus-example-rule
spec:
groups:
- name: dash0/k8s
interval: 5m
rules:
- alert: K8s pod crash looping
expr: "increase(kube_pod_container_status_restarts_total[1m]) > $__threshold"
annotations:
description: "Pod labels.namespace/labels.pod is crash looping. VALUE = value, LABELS = labels"
summary: "K8s pod crash looping K8s pod crash looping {{ $label. k8s_node_name }}"
dash0-enabled: "false" # false to disable and true (default) to enable
dash0-threshold-degraded: "10"
dash0-threshold-critical: "15"