cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Host availability state metric of 'no_data'

sivart_89
Mentor

I'm trying to alert on the host availability state metric of no_data but due to the fact that this metric is not plotted every single minute when there is no data being sent (seems to just be the first minute only), it complicates the alerting I'm trying to do. Is there any log file that is maybe updated when data is being sent so that we can monitor that log file instead and alert if there is no activity being logged in the file?

My current method I am alerting if no values of 'up' are received by toggling the 'alert on missing data' but the problem with that is in situations where the agent is purposely disabled, the alert will trigger OR in situations where the host is decommed the alert will still trigger.

https://docs.dynatrace.com/docs/observe/infrastructure-monitoring/hosts/monitoring/host-monitoring/h...

sivart_89_0-1740496448429.png

1 REPLY 1

p_devulapalli
Champion

@sivart_89 Have you tried using the nonempty parameter in DQL? It ensures that you get a result even when no data matches the filter such as "no_data" state as in your case 

https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/commands/metr...

Here is an example you can refer 

https://docs.dynatrace.com/docs/shortlink/metrics-on-grail-examples#example-10-monitoring-host-avail...

I tried it with reboot_graceful which is similar to no_data state and it seems to be giving the expected outcome

timeseries reboot_graceful = sum(dt.host.availability, default:0),
    nonempty:true,
    filter:{availability.state == "reboot_graceful"}

 

p_devulapalli_0-1741233326993.png

Hope this helps

 

Phani Devulapalli

Featured Posts