groups: - name: alert.rules rules: - alert: InstanceDown expr: up == 0 for: 1m labels: severity: critical annotations: summary: "Endpoint {{ $labels.instance }} down" description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 1 minutes." - alert: TestAlert expr: jvm_threads_deadlocked == 0.0 for: 30s labels: severity: warning annotations: summary: "Endpoint {{ $labels.instance }} Test Alert" description: "Test alert for {{ $labels.instance }} of job {{ $labels.job }} if there is no deadlocks."