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

Dynatrace V2 API - How to Call Kubernetes Metrics?? Any Examples??

louis_gallo
Helper

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

3 REPLIES 3

Julius_Loman
DynaMight Legend
DynaMight Legend

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?

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

ChadTurner
DynaMight Legend
DynaMight Legend

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/

-Chad

louis_gallo
Helper

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