Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kube_{creator} and kube_service for more metrics #3348

Merged
merged 2 commits into from
May 26, 2017

Conversation

xvello
Copy link
Contributor

@xvello xvello commented May 24, 2017

kube_service tagging is desactivable as of 5.14.1, see DataDog/integrations-core#476

What does this PR do?

transform kubeutil.get_kube_labels into get_kube_pod_tags to add kube_{creator} and kube_service tags to the dictionnary. This allows docker.* and kubernetes.* metrics to get these tags

Testing Guidelines

Test docker image is dev-dd-agent:xvello_docker_k8s_extend_tags , works on a k8s 1.6.1 cluster, these tags are now consistent between:

  • service discovery
  • kubernetes.pods.running
  • kubernetes.* cadvisor metrics
  • docker.* cgroup metrics

Copy link
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@xvello xvello force-pushed the xvello/docker_k8s_extend_tags branch from 2d613c3 to 8fbd309 Compare May 26, 2017 15:39
@xvello xvello merged commit 0450e4d into master May 26, 2017
@xvello xvello deleted the xvello/docker_k8s_extend_tags branch May 29, 2017 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants