-
Notifications
You must be signed in to change notification settings - Fork 2k
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
kube_cronjob_annotations
is output even though --metric-annotations-allowlist
is not set
#1576
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
Thanks for your report! |
I tried
It's not what I expected, but I'll try again after this PR #1491 is merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened:
When I set
--metric-labels-allowlist=cronjobs=[*]
, the metrics are also output tokube_cronjob_annotations
What you expected to happen:
Expected behavior
If
--metric-annotations-allowlist
is not set, the metrics ofkube_x_annotations
will not be output.Fact
How to reproduce it (as minimally and precisely as possible):
Create a cluster using kind.
Install kube-state-metrics from https://github.com/kubernetes/kube-state-metrics/tree/master/examples/standard.
Apply the following manifest
Check metrics
kubectl edit deploy kube-state-metrics
Check metrics
Metrics are output to
kube_x_annotations
even though--metric-annotations-allowlist
is not setAnything else we need to know?:
When I tried with
pods = [*]
,nodes = [*]
anddeployments = [*]
, the metrics ofkube_x_annotations
were not output.I think the behavior of
cronjobs = [*]
is strange.Environment:
kube-state-metrics version:
kube-state-metrics:v2.2.0
Kubernetes version (use
kubectl version
):Cloud provider or hardware configuration:
kind
Other info:
N/A
The text was updated successfully, but these errors were encountered: