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

API - Get Service method metrics split by SERVICE_INSTANCE?

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:

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

Regards,

Alexander


5 REPLIES 5

kulwinder_singh
Inactive

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


I tested it in API explorer. There is result: response.png

Regards,

Alexander


kulwinder_singh
Inactive

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.


nj_njoku
Inactive

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


Featured Posts