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

V2 API for OpenShift Statistics - pulling by tag

louis_gallo
Helper

Greetings Community,

I have become quite good at pulling server statistics in the V2 Metrics API by tag, but now I am adventuring into pulling OpenShift statistics and having some difficulty.

If I wanted let's say to pull "builtin:containers.cpu.usageMilliCores", can I pull that by tag?

I can do it by entityName (which I know is inefficient).

For a tag, what would I use?

type(??),tag("mytagname")

Any advise on how to get started would be greatly appreciated.

Thanks,

Lou

 

1 REPLY 1

nickvogt
Dynatrace Enthusiast
Dynatrace Enthusiast

Hi Lou,

I would try type(container_group_instance),tag("mytagname").

For example,

builtin:containers.cpu.usageMilliCores:filter(and(or(in("dt.entity.container_group_instance",entitySelector("type(container_group_instance),tag(~"mytagname~")"))))):auto

Let me know if that doesn't quite answer your question.

Take care,

Nick

Featured Posts