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

Add the "--opt-in-metrics" argument to the CLI to allow for opt-in metrics #1643

Merged

Conversation

Serializator
Copy link
Contributor

What this PR does / why we need it:
It introduces a way of defining metrics as "opt-in", meaning the end-user needs to specifically specify that metrics which are marked as "opt-in" are to be exposed by the store.

--opt-in-metrics is used to specify which opt-in metrics to expose from the store. It follows the same notation as the --metric-allowlist and --metric-denylist arguments.

How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)
It does not directly change or affect the cardinality of existing metrics.

Which issue(s) this PR fixes:
Fixes #1574

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 28, 2021
@Serializator
Copy link
Contributor Author

I noticed the CI checks and will resolve them this evening!

pkg/options/options.go Outdated Show resolved Hide resolved
@Serializator Serializator force-pushed the feature/opt-in-metrics-1574 branch 4 times, most recently from f8d3b74 to dab4a39 Compare November 29, 2021 20:35
pkg/optin/optin.go Outdated Show resolved Hide resolved
pkg/optin/optin.go Outdated Show resolved Hide resolved
@Serializator Serializator force-pushed the feature/opt-in-metrics-1574 branch 2 times, most recently from 8a95d3e to df1e058 Compare November 30, 2021 15:52
@fpetkovski
Copy link
Contributor

Nice work!
/lgtm

/hold for @mrueg to take another look

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 1, 2021
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 1, 2021
pkg/options/options.go Outdated Show resolved Hide resolved
@Serializator Serializator force-pushed the feature/opt-in-metrics-1574 branch from df1e058 to da04a73 Compare December 1, 2021 21:09
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 1, 2021
@mrueg
Copy link
Member

mrueg commented Dec 1, 2021

/lgtm
/hold cancel
Thanks for your contribution!

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 1, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 1, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fpetkovski, mrueg, Serializator

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 840d30c into kubernetes:master Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement a mechanism for opt-in metrics
4 participants