18 Oct 2024 08:44 PM - edited 18 Oct 2024 08:45 PM
Hello,
We have an automatic tag host-group-format with rules to tag the host if Host's Host Group is 'correct', 'does not exist', and 'incorrect'.
What is all needed to be configured in order for us to get an alert if there is a host with an 'incorrect' value for host-group-format tag.
Thank you in advance.
Solved! Go to Solution.
19 Oct 2024 01:05 PM - edited 19 Oct 2024 01:05 PM
Hi,
I do not think that is possible today, out-of-the-box, but lets wait another answers.
Best regards
19 Oct 2024 04:59 PM
Hello @Aleksey
Thanks for raising such important concern.
Regarding the Host Groups in Dynatrace:
So the suggestions:
Hoping it adds value.
KR,
Peter.
21 Oct 2024 12:44 AM
Hey @Aleksey
Could you use a metric like host availability filtered by hosts with the "incorrect" and "does not exist" tag? The metric selector would look something like:
builtin:host.availability:filter(and(or(in("dt.entity.host",entitySelector("type(host),tag(~"HostGroup:Value~")"))))):splitBy("dt.entity.host")
And then just alert if the value is greater than -1 so it always alerts if a host exists with that tag value. Then you can add a custom alert title/description to ensure people know what the alert is about.
24 Oct 2024 11:28 PM
Thank you @Peter_Youssef and @Fin_Ubels
I will try out your recommendations and comment on outcome.
For now I created a dashboard that lists hosts with incorrect or missing Host Group.
We are in the middle of on-boarding and learning at the same time. It was important to identify "incomplete" OneAgent deployments and notify owner to correct the script. Look forward to trying out the suggestions as I learn more. For now dashboard will suffice.