# API - Get Service method metrics split by SERVICE\_INSTANCE?

**URL:** <https://community.dynatrace.com/t/api-get-service-method-metrics-split-by-service-instance/20288>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [April 10, 2019, 6:25am UTC](https://community.dynatrace.com/t/api-get-service-method-metrics-split-by-service-instance/20288 "2019-04-10T06:25:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romanenkov\_Alex](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_alex/32/27497_2.png) [@Romanenkov\_Alex](https://community.dynatrace.com/u/Romanenkov_Alex)\
**Post date:** [April 10, 2019, 6:25am UTC](https://community.dynatrace.com/t/api-get-service-method-metrics-split-by-service-instance/20288/1 "2019-04-10T06:25:51Z")

</div>

Hello community!

I have one service in Dynatrace. There are three instance for this service placed on three hosts.

I want get service method metrcis (response time) via API only for one instance.

It is possible?

I have already tried with tags (process tags) and entities (entity: service\_method\_id… entity: service\_instance\_id…)

But response from API is:

```auto
"error": {
    "code": 400,
    "message": "The entity SERVICE_INSTANCE- ******** is not allowed for the given timeseries id."

```

Regards,

Alexander

---

<div class="post-metadata">

**Author:** ![kulwinder\_singh](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@kulwinder\_singh](https://community.dynatrace.com/u/kulwinder_singh)\
**Post date:** [April 10, 2019, 7:35am UTC](https://community.dynatrace.com/t/api-get-service-method-metrics-split-by-service-instance/20288/2 "2019-04-10T07:35:32Z")

</div>

do you get same error when you run the API from API explorer?

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Alex](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_alex/32/27497_2.png) [@Romanenkov\_Alex](https://community.dynatrace.com/u/Romanenkov_Alex)\
**Post date:** [April 10, 2019, 7:43am UTC](https://community.dynatrace.com/t/api-get-service-method-metrics-split-by-service-instance/20288/3 "2019-04-10T07:43:18Z")

</div>

I tested it in API explorer. There is result: [response.png](https://answers.dynatrace.com/storage/temp/20263-response.png)

Regards,

Alexander

---

<div class="post-metadata">

**Author:** ![kulwinder\_singh](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@kulwinder\_singh](https://community.dynatrace.com/u/kulwinder_singh)\
**Post date:** [April 10, 2019, 7:56am UTC](https://community.dynatrace.com/t/api-get-service-method-metrics-split-by-service-instance/20288/4 "2019-04-10T07:56:31Z")

</div>

Yes as i thought, you will have to find the entity ID for the instance you can do that via problem feeds or monitors api call to pull that detail and then use that entityID in that call it will not accept the entity name.

---

<div class="post-metadata">

**Author:** ![nj\_njoku](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nj_njoku/32/13710_2.png) [@nj\_njoku](https://community.dynatrace.com/u/nj_njoku)\
**Post date:** [April 10, 2019, 2:37pm UTC](https://community.dynatrace.com/t/api-get-service-method-metrics-split-by-service-instance/20288/5 "2019-04-10T14:37:50Z")

</div>

Hi Alexander,

The Service Instance is not a supported parameter for the requested timeseries. You can specify the exact service method entityID as a parameter as you have selected the com.dynatrace.builtin:servicemethod.requestspermin metric but you cannot split by the instances using the API at this time. You can use the Multi-Dimensional Analysis to see this or Add filters within the Service Page for the exact key request and instance in the UI.

Thanks

NJ

---

<div class="post-metadata">

**Author:** ![robert\_laurat](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@robert\_laurat](https://community.dynatrace.com/u/robert_laurat)\
**Post date:** [November 26, 2020, 1:34pm UTC](https://community.dynatrace.com/t/api-get-service-method-metrics-split-by-service-instance/20288/6 "2020-11-26T13:34:55Z")

</div>

I’ve added a RFE for this

> **[Login | Dynatrace](https://sso.dynatrace.com/action/signin?goto=https%3A%2F%2Fsso.dynatrace.com%3A443%2Foauth2%2Fauthorize%2Fredirect%3FoAuth2CtxUuid%3Dc4adbe88-b3e6-4c2c-b681-e0699d10a332&oAuth2RedirectUri=https%3A%2F%2Fcommunity.dynatrace.com%2Fauth%2Foauth2callback)**
