Open mellowplace opened 5 years ago
This happens because of a collision between the labels you're using for tagging pods-under-monitoring and the kube-state-metrics pods having those tags too. I haven't found a way to get the Datadog agent to specialcase-ignore the labels from kube-state-metrics pods, so instead i have used other non-standard labels (system-app
) for the kube-state-metrics deployment & its pods label-selector.
Thanks for sharing this! I was wondering if someone from DataDog can help with the direction on this issue.
@mellowplace this is resolved for me by setting this flag in configuration: https://github.com/DataDog/integrations-core/blob/master/kubernetes_state/datadog_checks/kubernetes_state/data/auto_conf.yaml#L7
related release note
you need to set the configuration to true
explicitly if you use a configuration yaml.
if you're still troubled by this issue you can try upgrading ur datadog chart to latest version (datadog-agent
need to be 7.16
/6.16
above) and update your config and that should work for you.
Output of the info page (if this is a bug)
Describe what happened:
kubernetes_state.*
metrics are being double tagged with labels from the actual Pod and withkube-state-metrics
labelsDescribe what you expected:
For the labels from the actual pod refered to by kube-state-metrics to be tagged agains the metrics.
Steps to reproduce the issue:
kubernetes_state.yaml (this plugin is producing the correct tags)
Snippet from kubernetes.yaml (this causes the mistagging with information from the kube-state-metrics pod)
Additional environment details (Operating System, Cloud provider, etc):
Kubernetes