Alerting
Questions about alerting and problem detection in Dynatrace.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Couldn't fetch ip address in problem dump

prabhavathi
Frequent Guest

When I am trying to fetch problem dump via API calls or workflow, I couldn't get ip address of the host. 

1)I Tired Changing Host naming rule as Hostname with IPaddress

2) I Tired Changing Automatic tags as hostname with ip address.

In Both methods I couldn't get ip address. help me understand why I can't ip address in problem card or problem dump? 

And Is there any other way to get ip address for a alert?

1 REPLY 1

MaximilianoML
Champion

Hello @prabhavathi 

I think the reliable way to get IPs into an alert is to enrich the alert after the problem is raised:

  1. Get the problem details with the Problems API or a workflow Problem trigger.
  2. Read the affectedEntities, impactedEntities, and rootCauseEntity / evidenceDetails entity stubs from the problem.
  3. For each relevant HOST-... entity ID, call the Monitored Entities API to fetch that host’s full properties.
  4. Add those IPs to your email, webhook payload, ServiceNow ticket, or workflow output. Dynatrace documents GET /api/v2/problems/{problemId} for problem details and GET /api/v2/entities/{entityId} for full entity properties.

But basically the answer is: no, Dynatrace won’t natively guarantee host IP on the problem card/problem dump just because we renamed the host or tagged it, unfortunately 😕

I hope it helps 😀

Max Lopes

Featured Posts