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

Allow an explicit value to be set for CustomResourceStateMetrics #1762

Closed
withnale opened this issue Jun 24, 2022 · 1 comment · Fixed by #1777
Closed

Allow an explicit value to be set for CustomResourceStateMetrics #1762

withnale opened this issue Jun 24, 2022 · 1 comment · Fixed by #1777
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@withnale
Copy link

What would you like to be added:

With Custom Resource metrics, at present it only seems possible to generate values based on path attributes, but often it is desirable to define the metric to be a certain value e.g. 1

Why is this needed:

Sometime we want to create metrics of a form similar to kube_pod_labels

@withnale withnale added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 24, 2022
@bavarianbidi
Copy link
Contributor

Please see #1755 where a forked version is mentioned where it's possible to define some "info" metrics - maybe this fit your needs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
2 participants