grafana 发现大量日志报错
t=2020-08-05T16:45:28+0800 lvl=eror msg="Unable to translate notification id to uid" logger=alerting.testnotification error="Alert notification [ Id: 1, OrgId: 1 ] not found" dashboardId=72 alertId=65 panelId=13 notificationId=1
t=2020-08-05T16:45:28+0800 lvl=eror msg="Unable to translate notification id to uid" logger=alerting.testnotification error="Alert notification [ Id: 2, OrgId: 1 ] not found" dashboardId=72 alertId=67 panelId=15 notificationId=2
t=2020-08-05T16:45:28+0800 lvl=eror msg="Unable to translate notification id to uid" logger=alerting.testnotification error="Alert notification [ Id: 1, OrgId: 1 ] not found" dashboardId=72 alertId=67 panelId=15 notificationId=1
t=2020-08-05T16:45:28+0800 lvl=eror msg="Unable to translate notification id to uid" logger=alerting.testnotification error="Alert notification [ Id: 2, OrgId: 1 ] not found" dashboardId=72 alertId=68 panelId=16 notificationId=2
t=2020-08-05T16:45:28+0800 lvl=eror msg="Unable to translate notification id to uid" logger=alerting.testnotification error="Alert notification [ Id: 1, OrgId: 1 ] not found" dashboardId=72 alertId=68 panelId=16 notificationId=1
t=2020-08-05T16:45:28+0800 lvl=eror msg="Unable to translate notification id to uid" logger=alerting.testnotification error="Alert notification [ Id: 2, OrgId: 1 ] not found" dashboardId=72 alertId=69 panelId=17 notificationId=2
t=2020-08-05T16:45:28+0800 lvl=eror msg="Unable to translate notification id to uid" logger=alerting.testnotification error="Alert notification [ Id: 1, OrgId: 1 ] not found" dashboardId=72 alertId=69 panelId=17 notificationId=1
t=2020-08-05T16:45:28+0800 lvl=eror msg="Unable to translate notification id to uid" logger=alerting.testnotification error="Alert notification [ Id: 2, OrgId: 1 ] not found" dashboardId=72 alertId=70 panelId=18 notificationId=2
经过查询对比存在的alerting规则发现,并没有ID为1和2的notificationId
需要进入设置中的JSON model直接删除使用到这两个ID的通知方式
"notifications": [#删除这一段{"id": 1},{"id": 2},###{"uid": "AQzRebWGk"},{"uid": "Lzx33bWMz"}]
删除保存后如果还在报错,则需要重启grafana