-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Improves tagging compliancy #5105
Improves tagging compliancy #5105
Conversation
4e3f724
to
13970a6
Compare
89b809f
to
c0c308b
Compare
Codecov Report
|
The `kubernetes_state` and `kubernetes` checks were using a different set of tag names to convey the same information. This change aims to introduce the `kubernetes` check tag set in the `kubernetes_state` check. To ease the user migration to the new tag names. This commit also introduces a new parameter `keep_ksm_labels` to have both tag sets on `kubernetes_state` metrics. Currently, `keep_ksm_labels` is set to `True` by default. Add `ignore_listener_tags` in `auto_conf` file to remove the autodiscovery listener tags from the check config.
6cc6f4e
to
1765ae5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor nits.
kubernetes_state/datadog_checks/kubernetes_state/kubernetes_state.py
Outdated
Show resolved
Hide resolved
kubernetes_state/datadog_checks/kubernetes_state/kubernetes_state.py
Outdated
Show resolved
Hide resolved
kubernetes_state/datadog_checks/kubernetes_state/kubernetes_state.py
Outdated
Show resolved
Hide resolved
kubernetes_state/datadog_checks/kubernetes_state/kubernetes_state.py
Outdated
Show resolved
Hide resolved
kubernetes_state/datadog_checks/kubernetes_state/kubernetes_state.py
Outdated
Show resolved
Hide resolved
Redefine this method to allow labels duplication, during migration phase | ||
""" | ||
custom_tags = scraper_config['custom_tags'] | ||
_tags = list(custom_tags) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tags
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't look like it? :). No worries though.
kubernetes_state/datadog_checks/kubernetes_state/kubernetes_state.py
Outdated
Show resolved
Hide resolved
@therve thank you for your review, I addressed all your comments. It would be great ff you can do a second review. |
kubernetes_state/datadog_checks/kubernetes_state/data/auto_conf.yaml
Outdated
Show resolved
Hide resolved
…f.yaml Co-Authored-By: Haïssam Kaj <hkaj@users.noreply.github.com>
Redefine this method to allow labels duplication, during migration phase | ||
""" | ||
custom_tags = scraper_config['custom_tags'] | ||
_tags = list(custom_tags) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't look like it? :). No worries though.
What does this PR do?
This change aims to introduce the
kubernetes
check tag set in thekubernetes_state
check.
To ease the user migration to the new tag names. This commit also introduces a new
parameter
ignore_autodiscovery_tags
to have both tag sets onkubernetes_state
metrics.Currently,
ignore_autodiscovery_tags
is set toTrue
by default.Motivation
The
kubernetes_state
andkubernetes
checks were using a different set of tag namesto convey the same information.
Additional Notes
Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attached