remove some unused collectors

Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
This commit is contained in:
Krasi Georgiev
2020-01-15 12:03:04 +02:00
parent 67ed0f63c2
commit 44f3c61010
2 changed files with 26 additions and 1 deletions

View File

@@ -89,7 +89,19 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
'--path.procfs=/host/proc',
'--path.sysfs=/host/sys',
'--path.rootfs=/host/root',
'--no-collector.wifi',
'--no-collector.hwmon',
'--no-collector.netstat',
'--no-collector.sockstat',
'--no-collector.entropy',
'--no-collector.filefd',
'--no-collector.time',
'--no-collector.conntrack',
'--no-collector.bcache',
'--no-collector.stat',
'--no-collector.xfs',
'--no-collector.pressure',
'--no-collector.arp',
// The following settings have been taken from
// https://github.com/prometheus/node_exporter/blob/0662673/collector/filesystem_linux.go#L30-L31
// Once node exporter is being released with those settings, this can be removed.

View File

@@ -20,6 +20,19 @@ spec:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --path.rootfs=/host/root
- --no-collector.wifi
- --no-collector.hwmon
- --no-collector.netstat
- --no-collector.sockstat
- --no-collector.entropy
- --no-collector.filefd
- --no-collector.time
- --no-collector.conntrack
- --no-collector.bcache
- --no-collector.stat
- --no-collector.xfs
- --no-collector.pressure
- --no-collector.arp
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+)($|/)
- --collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$
image: quay.io/prometheus/node-exporter:v0.18.1