You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would allow you to use openmetrics_endpoint implementation which is more performant than the legacy prometheus_url implementation which was created from https://docs.datadoghq.com/integrations/prometheus/ while using the Kubernetes service account scope.
Additional environment details (Operating System, Cloud provider, etc):
Kubernetes, kind
Problem statement
https://docs.datadoghq.com/integrations/guide/prometheus-host-collection/#parameters-available mentions the usage of
bearer_token_path
,bearer_token_auth
andopenmetrics_endpoint
but noprometheus_url
, in order to make the agent attach ServiceAccount's token to requests.After some testing and several hours of debugging I came to
integrations-core/datadog_checks_base/datadog_checks/base/checks/openmetrics/base_check.py
Line 15 in 14f280a
prometheus_url
.That's exactly what was missing. I switched
openmetrics_endpoint
toprometheus_url
and now my Pods are correctly attaching the token to requests.Possibly related
DataDog/datadog-agent#2667
The text was updated successfully, but these errors were encountered: