11 Sep 2024 02:57 PM - last edited on 12 Sep 2024 09:17 AM by MaciejNeumann
Hi,
Are we getting shutdown event in graceful shutdown? I would like to know where I can find that event, it might be host view, Grail table, whatever... Do we have a way to find those events?
That shutdown event might be a trigger to some workflow. Do you have some idea about this? Is that possible?
Thank you!
Best regards
Solved! Go to Solution.
11 Sep 2024 05:45 PM
Wonder if pulling the last value of builtin:host.availability.state:splitBy("availability.state") can work for you?
HTH
Yos
12 Sep 2024 07:56 AM
Hi Yos,
Thank you for your message!
I would like more an event to trigger some action immediately. It is more in relation to @Fin_Ubels answer.
Best regards
12 Sep 2024 12:05 AM - edited 13 Sep 2024 01:33 AM
Hey Anton, just tested it out in my environment, the metric mentioned above can be used as seen here:
You could script over the metric to ingest the changes as events but given the above requirements it would probably be easier to have the workflow run every minute and just check the metric. Unfortunately not as efficient as listening for events.
As for them as events, they were unique to my environment sorry, I had forgotten.
12 Sep 2024 07:53 AM
Hi,
Thank you!
I am trying to replicate those queries but I cannot find those events. I can see shutdown status in metric:
But events are empty:
Do you have some idea about that? Have you done some tenant configuration?
Best regards
13 Sep 2024 01:35 AM
Hey Anton, sorry I had forgotten that those events were unique to the environment I was using so they did not apply generally. Seems out of the box that the best solution is the metric. Sorry for any confusion!
15 Oct 2024 03:20 AM
Hey @AntonPineiro it looks like this might be coming in future agent releases according to these changelogs https://docs.dynatrace.com/docs/shortlink/release-notes-oneagent-sprint-301#host-availability-events.... Not sure if this will resolve the issues you have but keep an eye out for this when it lands to see.