cloudflare/pint

Public

mirrored from https://github.com/cloudflare/pintAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.83.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/pint/rules/1.yml

26lines · modecode

1groups:
2- name: test
3 rules:
4 - alert: Service Is Down
5 expr: up == 0
6 for: 0s
7
8 - alert: Service Is Down
9 expr: up{job="abc"} == 0
10
11 - alert: Service Is Missing
12 expr: absent({job="myjob"})
13 for: 0s
14
15 - alert: Everything Is Down
16 expr: up:sum == 0
17
18 - alert: Dead Code
19 expr: |
20 sum(foo or vector(0)) by(name) > 0
21
22 - alert: Service Is Missing
23 expr: absent({job="myjob"})
24 annotations:
25 summary: |
26 Service {{ $labels.job }} is not running on {{ $labels.instance }}
27