Skip to content

Commit

Permalink
jsonnet: Revert dropping container label on container_fs* metrices
Browse files Browse the repository at this point in the history
container_fs_.* metrics doesn't have "container" label after
openshift/pull/1402 which caused regression
for dashboards using "container" label since it gives empty datapoints
for all queries using "container" label in queries containing
container_fs_.* metrices.

Signed-off-by: Jayapriya Pai <janantha@redhat.com>
  • Loading branch information
slashpai committed Jun 3, 2022
1 parent fe80afa commit 63f33a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions assets/control-plane/service-monitor-kubelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ spec:
sourceLabels:
- __name__
targetLabel: __tmp_keep_metric
- action: drop
regex: ;(container_fs_.*);.+
sourceLabels:
- __tmp_keep_metric
- __name__
- container
- action: labeldrop
regex: __tmp_keep_metric
path: /metrics/cadvisor
Expand Down
6 changes: 0 additions & 6 deletions jsonnet/components/control-plane.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ function(params)
targetLabel: '__tmp_keep_metric',
replacement: 'true',
},
{
// these metrics are available at the slice level
sourceLabels: ['__tmp_keep_metric', '__name__', 'container'],
action: 'drop',
regex: ';(container_fs_.*);.+',
},
// drop the temporarily stashed metrics
{
action: 'labeldrop',
Expand Down

0 comments on commit 63f33a2

Please sign in to comment.