signalfx / splunk-otel-collector-chart

Splunk OpenTelemetry Collector for Kubernetes
Apache License 2.0
121 stars 150 forks source link

[chore] add test showing what hostmetrics metrics we capture #1422

Closed atoulme closed 2 months ago

atoulme commented 2 months ago

This test showcases what values we capture with hostmetrics. In particular, we can extrapolate from it the mountpoints watched by the daemonset.

$> yq '.. | select(has("name")) | select(.name == "system.filesystem.usage") | .. | select(has("key")) | select(.key == "mountpoint") | .value.stringValue' functional_tests/testdata/expected_kind_values/expected_hostmetrics_metrics.yaml

/conf
/conf
/var/lib/docker/containers
/var/lib/docker/containers
/var/log
/var/log
/dev/termination-log
/dev/termination-log
/etc/hostname
/etc/hostname
/etc/hosts
/etc/hosts
/etc/resolv.conf
/etc/resolv.conf
/hostfs/etc/hostname
/hostfs/etc/hostname
/hostfs/etc/hosts
/hostfs/etc/hosts
/hostfs/etc/resolv.conf
/hostfs/etc/resolv.conf
/usr/lib/splunk-otel-collector/agent-bundle/run/collectd
/usr/lib/splunk-otel-collector/agent-bundle/run/collectd
/var/addon/splunk/otel_pos
/var/addon/splunk/otel_pos