# Metrics API For Process Monitoring

**URL:** <https://community.dynatrace.com/t/metrics-api-for-process-monitoring/44065>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, process-groups, processes, dynatrace-api\
**Created:** [February 9, 2024, 5:48pm UTC](https://community.dynatrace.com/t/metrics-api-for-process-monitoring/44065 "2024-02-09T17:48:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![funkymike7](https://avatars.discourse-cdn.com/v4/letter/f/8e7dd6/32.png) [@funkymike7](https://community.dynatrace.com/u/funkymike7)\
**Post date:** [February 9, 2024, 5:48pm UTC](https://community.dynatrace.com/t/metrics-api-for-process-monitoring/44065/1 "2024-02-09T17:48:44Z")

</div>

I’m trying to utilize the metrics API to pull out alerting based upon process metrics that we have configured.&nbsp; 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?

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [April 3, 2024, 1:01pm UTC](https://community.dynatrace.com/t/metrics-api-for-process-monitoring/44065/2 "2024-04-03T13:01:29Z")

</div>

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

```markup
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.
