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

Help! V2 API Metrics - I can get container millicores, throttled millicores, and limits, but not requests

crabbylou
Helper

I want to get container millicores, throttled millicores, limits and requests in one query. I can get all but the requests. 

metricSelector
builtin:containers.cpu.usageMilliCores,builtin:containers.cpu.throttledMilliCores,builtin:containers.cpu.limit

entitySelector
type(CONTAINER_GROUP_INSTANCE),fromRelationships.IS_CGI_OF_CAI(type(CLOUD_APPLICATION_INSTANCE),type(CLOUD_APPLICATION_INSTANCE),entityId(CLOUD_APPLICATION_INSTANCE-xxxxxxxxxx))

This works fine for everything but container limits. There does not appear to be a container limits metric. Is what I want even possible? 

I can always do two API calls and then merge the datasets. 

Any advice appreciated!

5 REPLIES 5

Julius_Loman
DynaMight Legend
DynaMight Legend

There definitely is the builtin:containers.cpu.limit metric as per https://docs.dynatrace.com/docs/shortlink/all-metrics#cpu , what kind of containers are you u

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Julius, my apologies. I had a typo. I meant to say that there does not appear to be a container requests metric.

I want to get container millicores, throttled millicores, limits and requests in one query. I can get all but the requests. 

metricSelector
builtin:containers.cpu.usageMilliCores,builtin:containers.cpu.throttledMilliCores,builtin:containers.cpu.limit

entitySelector
type(CONTAINER_GROUP_INSTANCE),fromRelationships.IS_CGI_OF_CAI(type(CLOUD_APPLICATION_INSTANCE),type(CLOUD_APPLICATION_INSTANCE),entityId(CLOUD_APPLICATION_INSTANCE-xxxxxxxxxx))

This works fine for everything but container limits. There does not appear to be a container requests metric. Is what I want even possible? 

Lou

Julius, my apologies. I had a typo. I meant to say that there does not appear to be a container requests metric.

I want to get container millicores, throttled millicores, limits and requests in one query. I can get all but the requests. 

metricSelector
builtin:containers.cpu.usageMilliCores,builtin:containers.cpu.throttledMilliCores,builtin:containers.cpu.limit

entitySelector
type(CONTAINER_GROUP_INSTANCE),fromRelationships.IS_CGI_OF_CAI(type(CLOUD_APPLICATION_INSTANCE),type(CLOUD_APPLICATION_INSTANCE),entityId(CLOUD_APPLICATION_INSTANCE-xxxxxxxxxx))

This works fine for everything but container requests. There does not appear to be a container requests metric. Is what I want even possible? 

Lou

What exactly do you mean by container requests? CPU/memory requests or requests to services running on the container?

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

CPU/memory container requests. The memory requests for the container is there and easy to get. Container CPU requests are not.

Featured Posts