22 Apr 2024 04:59 PM
Hi There
I am looking to create a dashboard tile displaying Problems with a top line summary and the hostname. Is this possible on the Dynatrace Dashboards or Notebook pages?
Thanks a lot
Stuart
Solved! Go to Solution.
22 Apr 2024 05:31 PM - edited 22 Apr 2024 05:32 PM
You can, just query the events bucket and filter for event.kind == "DAVIS_PROBLEM".
Something like this could be your starting point:
fetch events
| filter event.kind == "DAVIS_PROBLEM"
| fieldsAdd Status = if((event.status == "ACTIVE")," OPEN",
else:if((event.status == "CLOSED"),"🟢 CLOSED"))
| fields Status, display_id, event.name, event.category, affected_entity_types, affected_entity_ids, timestamp
| sort timestamp desc
But if you need to have the actual entity names (instead of IDs) or the HOST where an application/service is running, use the lookup command to add that data into your tile.
https://docs.dynatrace.com/docs/shortlink/correlation-and-join-commands#lookup