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?
Lou
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.
Lou
Same here would like to be able to see what each container is using as a total for millicores
i am working on automating the pulling of metrics via the V2 API , could you please help if you have any resources or steps? thank you
@dynamic for pulling metrics, you need to use the Metrics API - Get metric data points. You need to supply parameters such as entitySelector and timeframe at least. Metric selector and entity selectors can be tricky for beginners, however for the new Unified Analysis Screens it's easy to show it in the data explorer:
And then you can just copy the metric selector from there or also use the filter part as entitySelector.
I can pull metrics from API, however, I need to automate the next page key to pull data in real-time. and then create a report based on that data. is there an efficient way to do it? the goal is to connect to powerBi