11 Oct 2024 06:38 AM - last edited on 15 Oct 2024 01:45 PM by MaciejNeumann
We are able to send custom Prometheus metrics to Dynatrace using podAnnotations as details here
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?
Solved! Go to Solution.
11 Oct 2024 08:58 AM
Hello @n002213f!
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 Prometheus extension (link). 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!
11 Oct 2024 12:51 PM - edited 11 Oct 2024 12:53 PM
Hi @n002213f , The newly recommended way (also fixes issues on resource consumption of the AG) is to use the Dynatrace OTEL Collector : Collector deployment - Dynatrace Docs.
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
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 but nothing you that is different to what the AG collects.
Hope this helps
Thanks