# Kubernetes API server metrics

**URL:** <https://community.dynatrace.com/t/kubernetes-api-server-metrics/44303>\
**Category:** Container platforms\
**Tags:** dynatrace-managed, kubernetes\
**Created:** [February 26, 2024, 12:12pm UTC](https://community.dynatrace.com/t/kubernetes-api-server-metrics/44303 "2024-02-26T12:12:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [February 26, 2024, 12:12pm UTC](https://community.dynatrace.com/t/kubernetes-api-server-metrics/44303/1 "2024-02-26T12:12:13Z")

</div>

Is anyone in here pulling these kubernetes metrics on Dynatrace and we are especially interested about the Kubernetes API metrics which is quite a blind spot with our current monitoring setup with Dynatrace.

> **[Kubernetes Metrics Reference](https://kubernetes.io/docs/reference/instrumentation/metrics/)**
>
> Details of the metric data that Kubernetes components export.

I have tried to go trough the Dynatrace documentation regarding this one but haven’t found any instructions on that side how to do this. This default prometheus support doesn’t seem to work on this case since at least on our Rancher kubernetes environment the kubernetes API is running on containers but there is no pod for it.

> **[Monitor Prometheus metrics](https://docs.dynatrace.com/docs/observe/infrastructure-observability/container-platform-monitoring/kubernetes-monitoring/monitor-prometheus-metrics)**
>
> Metric ingestion from Prometheus endpoints in Kubernetes, metrics alerts, and monitoring consumption.

---

<div class="post-metadata">

**Author:** ![florian\_g](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/florian_g/32/12081_2.png) [@florian\_g](https://community.dynatrace.com/u/florian_g)\
**Post date:** [October 16, 2024, 6:59am UTC](https://community.dynatrace.com/t/kubernetes-api-server-metrics/44303/2 "2024-10-16T06:59:40Z")

</div>

Hi&nbsp;[@janne\_olkoniemi](https://community.dynatrace.com/user/23527)&nbsp;- would this solution work for you?

[![](https://global.discourse-cdn.com/dynatrace/original/3X/8/9/89c476568ed66f129356c34ef3cc84c54591240b.jpeg "Ingest Prometheus metrics into Dynatrace") ](https://www.youtube.com/watch?v=p4hUhK7plic)

Best,

Florian

---

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [November 19, 2024, 9:44am UTC](https://community.dynatrace.com/t/kubernetes-api-server-metrics/44303/3 "2024-11-19T09:44:07Z")

</div>

Yes, I have working skeleton of OTEL configuration which pulls out kubernetes api & kubelet metrics currently.

The challenge we still have is that the Dynatrace support for prometheus histograms seems to still be a bit limited and many of the metrics we are after to are dropped by Dynatrace otpl interface.

Most of the metrics we are after are currently getting this kind of error and especially the metrics we are interested about are getting this&nbsp;kind of error:

Unsupported metric: ‘kubelet\_pod\_start\_duration\_seconds’ - Reason: UNSUPPORTED\_METRIC\_TYPE\_CUMULATIVE\_HISTOGRAM
