-
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
Adds support for include_labels #10493
Conversation
The |
2 similar comments
The |
The |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
The |
The |
0fac2fa
to
c42716a
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.
👍🏻 from docs team
* initial commit for include_labels * add tests * add include_labels to v2, add tests * resolve config sync * update config specs * sync configs and data models * Revert "sync configs and data models" This reverts commit c20bd3d. * remove changes to config templates * resync configs and models * apply suggestions from review * address comments from review, add tests * add additional tests for more v1 coverage * clean up tests 1cd174e
if not isinstance(entry, str): | ||
raise ConfigurationError(f'Entry #{i} of setting `include_labels` must be a string') | ||
if entry in self.exclude_labels: | ||
self.log.debug( |
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.
Should have been a warning?
What does this PR do?
Adds support for
include_labels
to the openmetrics base check. Labels that are configured ininclude_labels
will be added as tags on metric submission. Can be used in conjunction withexclude_labels
. If a label name is present in both options,exclude_labels
will take priority.Motivation
Support feature request
Additional Notes
Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attached