Skip to content

Commit

Permalink
Merge pull request #1159 from prashbnair/bz1955454
Browse files Browse the repository at this point in the history
Bug 1955454: [release-4.6] removing crio metric
  • Loading branch information
openshift-merge-robot committed May 22, 2021
2 parents 1fea627 + fd972f9 commit 5db69dc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions assets/prometheus-k8s/service-monitor-kubelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ spec:
caFile: /etc/prometheus/configmaps/kubelet-serving-ca-bundle/ca-bundle.crt
insecureSkipVerify: false
- interval: 30s
metricRelabelings:
- action: drop
regex: container_runtime_crio_image_layer_reuse|container_runtime_crio_image_pulls_.+
sourceLabels:
- __name__
port: https-metrics
relabelings:
- action: replace
Expand Down
7 changes: 7 additions & 0 deletions jsonnet/prometheus.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ local sccRole =
replacement: 'crio',
},
],
metricRelabelings: [
{
sourceLabels: ['__name__'],
regex: 'container_runtime_crio_image_layer_reuse|container_runtime_crio_image_pulls_.+',
action: 'drop',
},
],
}],
},
},
Expand Down
4 changes: 2 additions & 2 deletions pkg/manifests/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5db69dc

Please sign in to comment.