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'], sourceLabels: ['__name__', 'container'],
action: 'drop', action: 'drop',
regex: '(' + std.join('|', regex: '(' + std.join('|',
[ // metrics are available at slice level [
'container_fs_.*',
'container_blkio_device_usage_total', 'container_blkio_device_usage_total',
]) + ');.+', ]) + ');.+',
}, },

View File

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