Merge pull request #1402 from PhilipGough/cadvisor-metrics-2

Keep 'container_fs_.*' metrics from cAdvisor
This commit is contained in:
Damien Grisonnet
2021-09-28 11:13:24 +02:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -140,8 +140,7 @@ function(params) {
sourceLabels: ['__name__', 'container'],
action: 'drop',
regex: '(' + std.join('|',
[ // metrics are available at slice level
'container_fs_.*',
[
'container_blkio_device_usage_total',
]) + ');.+',
},

View File

@@ -67,7 +67,7 @@ spec:
- pod
- namespace
- action: drop
regex: (container_fs_.*|container_blkio_device_usage_total);.+
regex: (container_blkio_device_usage_total);.+
sourceLabels:
- __name__
- container