Hi Grafana Team,
My grafana instance is on v9.3.6, I tried creating an alert (POST) from postman via “AlertingProvisioning” REST API. The alert got created as you can see below postman 201 response code. I can also “GET” the created alert from postman. However, I cannot see this alert on dashboard 1) Either under Alert Rules UI or 2) Not even in the panel section where the alert was linked to. It is just puzzling to me why this is happening. Is there some known issue on this version of grafana ?
As you can see below: Alert section created under specific panel is empty. I can’t see any alert on UI.
neither under “Alert Rules” section::
alert body:
{
"uid": "Banff-services-Restarts-Australia",
"orgID": 1,
"title": "Banff-services-Restarts-Australia",
"condition": "A",
"data": [
{
"refId": "A",
"queryType": "",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "-100",
"model": {
"type": "classic_conditions",
"refId": "A",
"conditions": [
{
"evaluator": {
"params": [
2
],
"type": "gt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"B"
]
},
"reducer": {
"type": "max"
}
},
{
"evaluator": {
"params": [
2
],
"type": "gt"
},
"operator": {
"type": "or"
},
"query": {
"params": [
"C"
]
},
"reducer": {
"type": "max"
}
}
]
}
},
{
"refId": "B",
"queryType": "",
"relativeTimeRange": {
"from": 300,
"to": 0
},
"datasourceUid": "id_Australia-Prometheus",
"model": {
"expr": "sum(rate(kube_pod_container_status_restarts_total{namespace=\"central-australia\",container=\"zc-banff-onboarding\"}[1h]) * 3600)",
"interval": "",
"legendFormat": "",
"refId": "B"
}
},
{
"refId": "C",
"queryType": "",
"relativeTimeRange": {
"from": 300,
"to": 0
},
"datasourceUid": "id_Australia-Prometheus",
"model": {
"expr": "sum(rate(kube_pod_container_status_restarts_total{namespace=\"central-australia\",container=\"zc-banff-subscriber\"}[1h]) * 3600)",
"interval": "",
"legendFormat": "",
"refId": "C"
}
}
],
"noDataState": "NoData",
"execErrState": "Alerting",
"for": "5m",
"annotations": {
"__alertId__": "531",
"__dashboardUid__": "EKS-Banff-Australia",
"__panelId__": "35"
},
"labels": {
"alertname": "Banff-services-Restarts-Australia",
"rule_uid": "Banff-services-Restarts-Australia"
}
}