Skip to content

Commit

Permalink
KSM: add kube_*_annotations to --metric-denylist arg
Browse files Browse the repository at this point in the history
These metrics were added in
kubernetes/kube-state-metrics#1468 but for us
don't add any valuable information.

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
  • Loading branch information
jan--f authored and dgrisonnet committed Apr 8, 2022
1 parent 027e1eb commit 25e9644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/kube-state-metrics/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
- --port=8081
- --telemetry-host=127.0.0.1
- --telemetry-port=8082
- --metric-denylist=kube_secret_labels
- --metric-denylist=kube_secret_labels,kube_*_annotations
- --metric-labels-allowlist=pods=[*],nodes=[*],namespaces=[*]
- |
--metric-denylist=
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/components/kube-state-metrics.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function(params)
else
c {
args+: [
'--metric-denylist=kube_secret_labels',
'--metric-denylist=kube_secret_labels,kube_*_annotations',
'--metric-labels-allowlist=pods=[*],nodes=[*],namespaces=[*]',
],
securityContext: {},
Expand Down

0 comments on commit 25e9644

Please sign in to comment.