change 1 rules in pending

pull/949/head
3thibaut1304 2025-07-05 01:42:37 +02:00
parent bf8f0da19c
commit f53e3f6efd
2 changed files with 19 additions and 19 deletions

View File

@ -10,8 +10,8 @@
"annotations": { "annotations": {
"summary": "Demo Alert" "summary": "Demo Alert"
}, },
"state": "firing", "state": "pending",
"activeAt": "2025-07-04T23:09:29.244509801Z", "activeAt": "2025-07-04T23:41:29.244509801Z",
"value": "1e+00" "value": "1e+00"
}, },
{ {
@ -23,7 +23,7 @@
"summary": "Critical Test Alert" "summary": "Critical Test Alert"
}, },
"state": "firing", "state": "firing",
"activeAt": "2025-07-04T23:09:29.244509801Z", "activeAt": "2025-07-04T23:41:29.244509801Z",
"value": "1e+00" "value": "1e+00"
} }
] ]

View File

@ -7,7 +7,7 @@
"file": "/etc/prometheus/alert.rules.yml", "file": "/etc/prometheus/alert.rules.yml",
"rules": [ "rules": [
{ {
"state": "firing", "state": "pending",
"name": "DemoPendingThenFiring", "name": "DemoPendingThenFiring",
"query": "vector(1)", "query": "vector(1)",
"duration": 120, "duration": 120,
@ -27,14 +27,14 @@
"annotations": { "annotations": {
"summary": "Demo Alert" "summary": "Demo Alert"
}, },
"state": "firing", "state": "pending",
"activeAt": "2025-07-04T23:09:29.244509801Z", "activeAt": "2025-07-04T23:41:29.244509801Z",
"value": "1e+00" "value": "1e+00"
} }
], ],
"health": "ok", "health": "ok",
"evaluationTime": 0.000211901, "evaluationTime": 0.00031672,
"lastEvaluation": "2025-07-05T01:33:29.245332571+02:00", "lastEvaluation": "2025-07-05T01:41:29.244670258+02:00",
"type": "alerting" "type": "alerting"
}, },
{ {
@ -59,20 +59,20 @@
"summary": "Critical Test Alert" "summary": "Critical Test Alert"
}, },
"state": "firing", "state": "firing",
"activeAt": "2025-07-04T23:09:29.244509801Z", "activeAt": "2025-07-04T23:41:29.244509801Z",
"value": "1e+00" "value": "1e+00"
} }
], ],
"health": "ok", "health": "ok",
"evaluationTime": 0.000074511, "evaluationTime": 0.000093386,
"lastEvaluation": "2025-07-05T01:33:29.245547238+02:00", "lastEvaluation": "2025-07-05T01:41:29.244989354+02:00",
"type": "alerting" "type": "alerting"
} }
], ],
"interval": 60, "interval": 60,
"limit": 0, "limit": 0,
"evaluationTime": 0.000303826, "evaluationTime": 0.000432731,
"lastEvaluation": "2025-07-05T01:33:29.245319516+02:00" "lastEvaluation": "2025-07-05T01:41:29.244651703+02:00"
}, },
{ {
"name": "wireguard", "name": "wireguard",
@ -93,8 +93,8 @@
}, },
"alerts": [], "alerts": [],
"health": "ok", "health": "ok",
"evaluationTime": 0.000193607, "evaluationTime": 0.00037991,
"lastEvaluation": "2025-07-05T01:34:02.853540745+02:00", "lastEvaluation": "2025-07-05T01:41:02.847097789+02:00",
"type": "alerting" "type": "alerting"
}, },
{ {
@ -112,15 +112,15 @@
}, },
"alerts": [], "alerts": [],
"health": "ok", "health": "ok",
"evaluationTime": 0.000102034, "evaluationTime": 0.000122432,
"lastEvaluation": "2025-07-05T01:34:02.853736466+02:00", "lastEvaluation": "2025-07-05T01:41:02.847481226+02:00",
"type": "alerting" "type": "alerting"
} }
], ],
"interval": 60, "interval": 60,
"limit": 0, "limit": 0,
"evaluationTime": 0.000306811, "evaluationTime": 0.000533061,
"lastEvaluation": "2025-07-05T01:34:02.853533091+02:00" "lastEvaluation": "2025-07-05T01:41:02.8470724+02:00"
} }
] ]
} }