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

Metrics API For Process Monitoring

funkymike7
Frequent Guest

I'm trying to utilize the metrics API to pull out alerting based upon process metrics that we have configured.  Does anyone have an example of the syntax that I would need to utilize and what is the ID that I need to relate to a given process when doing so?

1 REPLY 1

mark_bley
Dynatrace Pro
Dynatrace Pro

You can use the events api to pull all events that were raised on the specific entity(process) either through Davis or through user defined metric events

curl -X 'GET' \
  'https://{environmentid}.live.dynatrace.com/api/v2/events?entitySelector=type%28process_group_instance%29' \
  -H 'accept: application/json; charset=utf-8' \
  -H 'Authorization: Api-Token xxxx'

 

Through the metrics API you will get very detailed datapoints to the specified metric key.

Metrics related to a process can be a lot so you would need to be more specific with what metric you want.

Featured Posts