# Best way to implement Prometheus Metrics to Dynatrace

**URL:** <https://community.dynatrace.com/t/best-way-to-implement-prometheus-metrics-to-dynatrace/21130>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed\
**Created:** [December 31, 2020, 3:40pm UTC](https://community.dynatrace.com/t/best-way-to-implement-prometheus-metrics-to-dynatrace/21130 "2020-12-31T15:40:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylvie\_Perriere](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Sylvie\_Perriere](https://community.dynatrace.com/u/Sylvie_Perriere)\
**Post date:** [December 31, 2020, 3:40pm UTC](https://community.dynatrace.com/t/best-way-to-implement-prometheus-metrics-to-dynatrace/21130/1 "2020-12-31T15:40:30Z")

</div>

Hello

I have a lot of custom metrics already existing for my project via spring boot application and many endpoints.

How can I reuse it to be used in Dynatrace with the better way?

I have began to use Micrometer in a springboot application, but it seems that I need to re-implement all metrics to use Dynatrace libraries.

Any idea ?

Thanks

Best regards

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [December 31, 2020, 3:48pm UTC](https://community.dynatrace.com/t/best-way-to-implement-prometheus-metrics-to-dynatrace/21130/2 "2020-12-31T15:48:52Z")

</div>

If this is in Kubernetes you can set up the Kubernetes integration and there is a new feature to have it scrape your metrics endpoints if you annotate them with the required entries. This brings those metrics into Dynatrace.

> **[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.

 ![27774-1609429728974.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/0/9050423cd463d8830ebbcc9138ba22c89a75bd38.png)

Alternatively you could use the generic metric ingest in a script or something like that to report the metrics back via the OneAgent: [https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods/pipe/](https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods/pipe/)

---

<div class="post-metadata">

**Author:** ![sonja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sonja/32/10349_2.png) [@sonja](https://community.dynatrace.com/u/sonja)\
**Post date:** [February 7, 2022, 9:29am UTC](https://community.dynatrace.com/t/best-way-to-implement-prometheus-metrics-to-dynatrace/21130/3 "2022-02-07T09:29:23Z")

</div>

Hello! I just wanted to let you know - and for future references - that we have published a new version of the micrometer registry for Dynatrace:&nbsp;[https://micrometer.io/docs/registry/dynatrace](https://micrometer.io/docs/registry/dynatrace), with simplified deployment and that automatically connecting your Micrometer metrics to the topology.

Documentation:&nbsp;[Send Micrometer metrics to Dynatrace — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods/micrometer)

Sonja
