19 May 2025 12:29 PM
I have a dashboard that shows the problems that arrive to a specific alerting profile.
The problem is that this alerting profile receives problems from several hosts and I would like to see to which host corresponds each problem, each host has a tag with the host name.
I'm trying to show the entity_tag field only with that host tag but I get all the tags, I don't know how to solve it.
Solved! Go to Solution.
19 May 2025 12:56 PM
You can find all the details to accessing tags on entities here https://docs.dynatrace.com/docs/shortlink/grail-querying-monitored-entities#entity-tags
For your case something like this should do the trick
fetch dt.entity.host
| expand tags, alias:tag_string
| parse tag_string, """(('['LD:tag_context ']' LD:tag_key (!<<'\\' ':') LD:tag_value)|(LD:tag_key (!<<'\\' ':') LD:tag_value)|LD:tag_key)"""
| filter tag_key == "entity_tag"