13 Feb 2023 02:52 PM - last edited on 13 Feb 2023 03:01 PM by Ana_Kuzmenchuk
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
Solved! Go to Solution.
16 Feb 2023 10:55 AM
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