Skip to content

Commit

Permalink
Fix errors filesystem metrics scraping errors
Browse files Browse the repository at this point in the history
By excluding mount point that are not accessible by the collector container
  • Loading branch information
dmitryax committed Nov 22, 2024
1 parent b2cd8d6 commit 15a4b4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ receivers:
cpu:
disk:
filesystem:
exclude_mount_points:
match_type: regexp
mount_points: [/var/.*]
memory:
network:
# System load average metrics https://en.wikipedia.org/wiki/Load_(computing)
Expand Down
9 changes: 0 additions & 9 deletions helm-charts/splunk-otel-collector/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,6 @@ spec:
name: {{ include "splunk-otel-collector.secret" . }}
key: splunk_platform_hec_token
{{- end }}
{{- if eq (include "splunk-otel-collector.metricsEnabled" .) "true" }}
{{- if not .Values.isWindows }}
# until https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/5879
# is resolved fall back to previous gopsutil mountinfo path:
# https://github.com/shirou/gopsutil/issues/1271
- name: HOST_PROC_MOUNTINFO
value: /proc/self/mountinfo
{{- end }}
{{- end }}
{{- with $agent.extraEnvs }}
{{- . | toYaml | nindent 10 }}
{{- end }}
Expand Down

0 comments on commit 15a4b4d

Please sign in to comment.