Skip to content

Commit

Permalink
correct the root_path inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Sep 27, 2024
1 parent 6785159 commit 7d6b0a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ data:
endpoint: 0.0.0.0:8006
hostmetrics:
collection_interval: 10s
root_path: C:\hostfs
scrapers:
cpu: null
disk: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
component: otel-collector-agent
release: default
annotations:
checksum/config: 54d5a25bf71c83dd3ca9919f0171c121cb00e5d477c59b73088c0c42546ce58e
checksum/config: b47a7927cf58f4d069715915001d5c77a342f88521eb22f4f6ec77f6638907fc
kubectl.kubernetes.io/default-container: otel-collector
spec:
dnsPolicy: ClusterFirstWithHostNet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ receivers:
{{- if (eq (include "splunk-otel-collector.metricsEnabled" .) "true") }}
hostmetrics:
collection_interval: 10s
root_path: {{ .Values.isWindows | ternary "C:\\hostfs" "/hostfs" }}
{{- if not .Values.isWindows }}
root_path: "/hostfs"
{{- end }}
scrapers:
cpu:
disk:
Expand Down

0 comments on commit 7d6b0a0

Please sign in to comment.