Skip to content

Commit

Permalink
test fs/disk scrapers with hostmetrics in collector container
Browse files Browse the repository at this point in the history
  • Loading branch information
jinja2 committed Nov 22, 2024
1 parent b2cd8d6 commit 9dee17d
Showing 1 changed file with 41 additions and 35 deletions.
76 changes: 41 additions & 35 deletions helm-charts/splunk-otel-collector/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ spec:
# is resolved fall back to previous gopsutil mountinfo path:
# https://github.com/shirou/gopsutil/issues/1271
- name: HOST_PROC_MOUNTINFO
value: /proc/self/mountinfo
value: /hostfs/proc/1/mountinfo
{{- end }}
{{- end }}
{{- with $agent.extraEnvs }}
Expand Down Expand Up @@ -357,24 +357,27 @@ spec:
name: hostfs
readOnly: true
{{- else }}
- mountPath: /hostfs/dev
name: host-dev
readOnly: true
- mountPath: /hostfs/etc
name: host-etc
readOnly: true
- mountPath: /hostfs/proc
name: host-proc
readOnly: true
- mountPath: /hostfs/run/udev/data
name: host-run-udev-data
readOnly: true
- mountPath: /hostfs/sys
name: host-sys
readOnly: true
- mountPath: /hostfs/var/run/utmp
name: host-var-run-utmp
- mountPath: /hostfs
name: hostfs
readOnly: true
# - mountPath: /hostfs/dev
# name: host-dev
# readOnly: true
# - mountPath: /hostfs/etc
# name: host-etc
# readOnly: true
# - mountPath: /hostfs/proc
# name: host-proc
# readOnly: true
# - mountPath: /hostfs/run/udev/data
# name: host-run-udev-data
# readOnly: true
# - mountPath: /hostfs/sys
# name: host-sys
# readOnly: true
# - mountPath: /hostfs/var/run/utmp
# name: host-var-run-utmp
# readOnly: true
{{- end }}
{{- end }}
{{- if or .Values.splunkPlatform.clientCert .Values.splunkPlatform.clientKey .Values.splunkPlatform.caFile }}
Expand Down Expand Up @@ -521,24 +524,27 @@ spec:
hostPath:
path: "C:\\"
{{- else }}
- name: host-dev
hostPath:
path: /dev
- name: host-etc
hostPath:
path: /etc
- name: host-proc
hostPath:
path: /proc
- name: host-run-udev-data
hostPath:
path: /run/udev/data
- name: host-sys
hostPath:
path: /sys
- name: host-var-run-utmp
- name: hostfs
hostPath:
path: /var/run/utmp
path: /
# - name: host-dev
# hostPath:
# path: /dev
# - name: host-etc
# hostPath:
# path: /etc
# - name: host-proc
# hostPath:
# path: /proc
# - name: host-run-udev-data
# hostPath:
# path: /run/udev/data
# - name: host-sys
# hostPath:
# path: /sys
# - name: host-var-run-utmp
# hostPath:
# path: /var/run/utmp
{{- end }}
{{- end }}
{{- if or .Values.splunkPlatform.clientCert .Values.splunkPlatform.clientKey .Values.splunkPlatform.caFile }}
Expand Down

0 comments on commit 9dee17d

Please sign in to comment.