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

fix: allow dropping metrics, labels and configuring histogram bucket boundaries to avoid high cardinality #974

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

rodrigorfk
Copy link
Contributor

Related issue

kyverno/kyverno#8401
kyverno/kyverno#8569

Proposed Changes

This changes evolves the metrics related configuration done via the kyverno-metrics ConfigMap, exposing two new fields as following:

  • metricsExposure: this is a map of a struct allowing each metric to be disabled, filtered labels or changed the bucket boundaries.
  • bucketBoundaries: this configures the default bucket boundaries for all histograms.

It's worth mentioning this change does not change the default metrics configuration currently in use by Kyverno, meaning that all metrics, labels and bucket dimensions currently in use are preserved by default.

Checklist

  • I have read the contributing guidelines.
  • I have inspected the website preview for accuracy.
  • I have signed off my issue.

@welcome
Copy link

welcome bot commented Oct 3, 2023

Thanks for opening your first Pull Request here! Please check out our Contributing guidelines and confirm that you Signed off.

…boundaries to avoid high cardinality

Signed-off-by: Rodrigo Fior Kuntzer <rodrigo@miro.com>
@chipzoller chipzoller changed the title fix: allow dropping metrics, labels and configuring histogram bucket boundaries to avoid high cardinality [Hold] fix: allow dropping metrics, labels and configuring histogram bucket boundaries to avoid high cardinality Oct 8, 2023
@realshuting realshuting changed the title [Hold] fix: allow dropping metrics, labels and configuring histogram bucket boundaries to avoid high cardinality fix: allow dropping metrics, labels and configuring histogram bucket boundaries to avoid high cardinality Oct 13, 2023
@realshuting realshuting added this to the 1.11.0 milestone Oct 13, 2023
Copy link
Member

@realshuting realshuting left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks @rodrigorfk !

@realshuting realshuting merged commit 4ee00e5 into kyverno:main Oct 13, 2023
5 checks passed
@welcome
Copy link

welcome bot commented Oct 13, 2023

Congratulations! 🎉

Great job merging your first Pull Request here! How awesome! If you are new to this project, feel free to join our Slack community.

200w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants