# Setting frequency for Prometheus metrics polling

**URL:** <https://community.dynatrace.com/t/setting-frequency-for-prometheus-metrics-polling/48272>\
**Category:** Container platforms\
**Tags:** prometheus, dynatrace-operator, kubernetes\
**Created:** [October 11, 2024, 5:38am UTC](https://community.dynatrace.com/t/setting-frequency-for-prometheus-metrics-polling/48272 "2024-10-11T05:38:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![n002213f](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/n002213f/32/16467_2.png) [@n002213f](https://community.dynatrace.com/u/n002213f)\
**Post date:** [October 11, 2024, 5:38am UTC](https://community.dynatrace.com/t/setting-frequency-for-prometheus-metrics-polling/48272/1 "2024-10-11T05:38:54Z")

</div>

We are able to send custom Prometheus metrics to Dynatrace using podAnnotations as details [here](https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/container-platform-monitoring/kubernetes-monitoring/monitor-prometheus-metrics#number-of-pods-metrics-and-metric-data-points)

From the documentation, polling is at 1 minute intervals.

Pulling these metrics makes use of complex queries on the database which when run every minute is placing strain on our database.

Is there a way to configure the polling interval to allow for polling every 5 minutes?

---

<div class="post-metadata">

**Author:** ![jaume\_reverte](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jaume_reverte/32/1479_2.png) [@jaume\_reverte](https://community.dynatrace.com/u/jaume_reverte)\
**Post date:** [October 11, 2024, 7:58am UTC](https://community.dynatrace.com/t/setting-frequency-for-prometheus-metrics-polling/48272/2 "2024-10-11T07:58:07Z")

</div>

Hello&nbsp;[@n002213f](https://community.dynatrace.com/user/57979)!

For now, as far as I know, it is not possible to configure the K8s exporter to not pull the metrics every minute.

You can try creating your own&nbsp;Prometheus extension ([link](https://docs.dynatrace.com/docs/extend-dynatrace/extensions20/data-sources/prometheus-extensions/prometheus-schema-reference)). This way, you can select the polling interval used for each metric. I have never tested in a K8s environment.

Hope you a good monitoring!

---

<div class="post-metadata">

**Author:** ![gopher](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gopher/32/5728_2.png) [@gopher](https://community.dynatrace.com/u/gopher)\
**Post date:** [October 11, 2024, 11:51am UTC](https://community.dynatrace.com/t/setting-frequency-for-prometheus-metrics-polling/48272/3 "2024-10-11T11:51:13Z")

</div>

Hi [@n002213f](https://community.dynatrace.com/user/57979) , The newly recommended way (also fixes issues on resource consumption of the AG) is to use the Dynatrace OTEL Collector : [Collector deployment - Dynatrace Docs](https://docs.dynatrace.com/docs/extend-dynatrace/opentelemetry/collector/deployment).

This gives you the same capability as a standard Prometheus server and you don’t need to worry about the Dynatrace scrape settings. You can set the prom standard scrape intervals in this and customise it per scrape setting.

e.g

```auto
          scrape_configs:
            - job_name: 'istiod'
              scrape_interval: 5m
              static_configs:
                - targets: ['istiod.istio-internal.svc.cluster.local:15014']

```

There are a couple of limitations around the metrics [Ingest OpenTelemetry metrics - Dynatrace Docs](https://docs.dynatrace.com/docs/extend-dynatrace/opentelemetry/getting-started/metrics/ingest#dynatrace-ingestion-metrics) but nothing you that is different to what the AG collects.

Hope this helps

Thanks

---

<div class="post-metadata">

**Author:** ![gilles\_tabary](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gilles\_tabary](https://community.dynatrace.com/u/gilles_tabary)\
**Post date:** [April 29, 2026, 9:52am UTC](https://community.dynatrace.com/t/setting-frequency-for-prometheus-metrics-polling/48272/4 "2026-04-29T09:52:06Z")

</div>

See related idea :&nbsp;[RFE: All extensions delivered by default with customisable polling frequency](https://community.dynatrace.com/post/298624)
