31 Jul 2025 09:53 PM
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!
01 Aug 2025 10:44 PM
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
04 Aug 2025 06:33 PM
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
04 Aug 2025 06:48 PM
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
04 Aug 2025 09:25 PM
What exactly do you mean by container requests? CPU/memory requests or requests to services running on the container?
04 Aug 2025 09:44 PM
CPU/memory container requests. The memory requests for the container is there and easy to get. Container CPU requests are not.