-
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
Fix deployment count metric #8247
Conversation
5cd90a2
to
83544ff
Compare
Codecov Report
|
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.
LGTM
@@ -869,7 +867,7 @@ def kube_limitrange(self, metric, scraper_config): | |||
else: | |||
self.log.error("Metric type %s unsupported for metric %s", metric.type, metric.name) | |||
|
|||
def count_objects_by_tags(self, metric, scraper_config): | |||
def count_values_by_tags(self, metric, scraper_config): | |||
""" Count objects by allowed tags and submit counts as gauges. """ |
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.
Nit: could rephrase the comment to mention the difference between count_objects and count_values
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.
renamed to sum_values_by_tags
to be clearer
a2cb1fb
to
0cd89f6
Compare
* Split count_objects_by_tags from count_values_by_tags * Assert on count values * Update docstring
What does this PR do?
Count the number of objects instead of summing up values for certain count metrics.
Otherwise the deployment count metric would sum up the number of deployment generations
Motivation
Fix deployment count metric
Additional Notes
Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attached