...
1{
2 "displayName": "New TH Test Policy 2",
3 "documentation": {
4 "content": "Unit Test alertman validation",
5 "mimeType": "text/markdown"
6 },
7 "userLabels": {
8 "managed": "true",
9 "policy-owner": "observability",
10 "severity": "critcal",
11 "variable": "test"
12 },
13 "conditions": [
14 {
15 "displayName": "Prometheus Target - prometheus/request_total/counter",
16 "conditionThreshold": {
17 "filter": "resource.type = \"prometheus_target\" AND metric.type = \"prometheus.googleapis.com/request_total/counter\"",
18 "aggregations": [
19 {
20 "alignmentPeriod": "300s",
21 "perSeriesAligner": "ALIGN_RATE"
22 }
23 ],
24 "comparison": "COMPARISON_GT",
25 "thresholdValue": 2,
26 "duration": "0s",
27 "trigger": {
28 "count": 1
29 }
30 }
31 }
32 ],
33 "combiner": "OR",
34 "enabled": true,
35 "notificationChannels": [
36 "email TH"
37 ],
38 "alertStrategy": {
39 "autoClose": "604800s"
40 }
41}
View as plain text