How to include vm name in alert when No data

Hi Teams
Currently, I am using Telegarf, InfluxDB, and Grafana to check the status of the VM, and if there is an abnormality, I am shooting an alarm on the slack.
If the VM being collected stops or Telegarf stops, data cannot be collected and No Data Alert is generated. However, since No Data Alert does not include VM name, is there a way to generate an Alert including VM name?
For your information, it is impossible to make alerts for each vm because there are many vm numbers

Iā€™d try to configure the No Data state to Alerting. Read more in the Docs.

If no data, it will not generate the additional DatasourceNoData alert. Instead, it will fire the existing alert instance including its alert labels, such as the VM name.

If necessary, you can use the grafana_state_reason annotation to distinguish when the alert was fired because of no data.

Hope it helps!

1 Like

Thank you for your help!

1 Like