모니터링(Grafana, Prometheus)/Grafana

Grafana Alert 설정하기-4(No Data Alert 설정)

babbeolicoding 2023. 6. 1. 23:29

Grafana에서 Alert을 설정할때

아래 이미지처럼 "No data"로 metrics이 수집이 안되는 경우 보통 Alert이 날아간다.

하지만 경우에 따라 No data인 경우가 정상이고

metrics이 수집되는 경우 비정상인 경우도 필요하다.

이런 경우는 Alert을 설정할때 Configure no data and error handing 부분을 설정해주면

No data인 경우도 Alert을 보내지 않을 수 있다.

 

Alert을 설정할때 Configure no data and error handing 부분을 클릭하면

Alert state if no data or all values are null 부분이 보통 No Data로 되어있다.

이 설정은 metrics이 아무것도 수집되지 않는 경우 즉 No data로 나올때

No data로 알림을 보내준다는 뜻이다.

 

이런 경우는 해당 부분을 "OK"로 설정해주면 No data인 경우 Alert이 오지 않게 설정이 가능하다.