Keep 'container_fs_.*' metrics from cAdvisor

This commit is contained in:
Philip Gough
2021-09-27 17:13:00 +01:00
parent 53a2f066d3
commit 58e2c131c2
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