Skip to content

Commit

Permalink
Merge pull request #1426 from jan--f/filter-kube-annotation-metrics
Browse files Browse the repository at this point in the history
KSM: add kube_*_annotations to --metric-denylist arg
  • Loading branch information
openshift-merge-robot committed Oct 12, 2021
2 parents f766545 + 52c13e9 commit 711b75f
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 711b75f

Please sign in to comment.