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

Entity_tags DQL

Pablo2
Participant

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.

1 REPLY 1

mark_bley
Dynatrace Champion
Dynatrace Champion

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"

Featured Posts