I am getting pretty proficient automating the pulling of metrics via the V2 API. My next challenge is how to create basic queries for statistics OpenShift pods from Kubernetes. I am totally stumped.
Anyone have any good examples?
Solved! Go to Solution.
If there is a metric for that (Check it in the menu Metrics in UI), then you are able to pull it easily. Is there any specific metric you need to query?
This is a great list of the metrics and metric keys that are in Dynatrace: https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/built-in-metrics/saas/
So for example, I am trying to pull builtin:containers.cpu.usageMilliCores for an OpenShift entity. I can easily pull that with type(CONTAINER_GROUP_INSTANCE),entityName("my-app"). However I cannot seem to pull by tag that my-app belongs to.