2024-02-24 19:17:44 +00:00
|
|
|
image:
|
|
|
|
repository: prometheuscommunity/smartctl-exporter
|
|
|
|
pullPolicy: IfNotPresent
|
2024-03-05 19:26:49 +00:00
|
|
|
tag: v0.12.0@sha256:479e2cfa0e5c841ae02e075edd38cd0133a19bb058b4a3077d7484cfc92ba93d
|
2024-02-24 19:17:44 +00:00
|
|
|
securityContext:
|
|
|
|
container:
|
|
|
|
privileged: true
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
protocol: http
|
|
|
|
port: 9633
|
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
type: DaemonSet
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
args:
|
|
|
|
- --web.listen-address
|
|
|
|
- :{{ .Values.service.main.ports.main.port }}
|
|
|
|
- --web.telemetry-path
|
|
|
|
- "{{ .Values.smartctl.metricsEndpoint }}"
|
|
|
|
- --smartctl.path
|
|
|
|
- /usr/sbin/smartctl
|
|
|
|
- --smartctl.interval
|
|
|
|
- "{{ .Values.smartctl.pollInterval }}"
|
|
|
|
- --smartctl.rescan
|
|
|
|
- "{{ .Values.smartctl.rescanInterval }}"
|
|
|
|
- --smartctl.device-exclude
|
|
|
|
- "{{ .Values.smartctl.excludedDevices }}"
|
|
|
|
- --log.level
|
|
|
|
- "{{ .Values.logs.general.level }}"
|
|
|
|
- --log.format
|
|
|
|
- "{{ .Values.logs.general.format }}"
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
path: "{{ .Values.smartctl.metricsEndpoint }}"
|
|
|
|
port: main
|
|
|
|
readiness:
|
|
|
|
path: "{{ .Values.smartctl.metricsEndpoint }}"
|
|
|
|
port: main
|
|
|
|
startup:
|
|
|
|
type: tcp
|
|
|
|
port: main
|
2024-03-05 19:26:49 +00:00
|
|
|
|
|
|
|
persistence:
|
|
|
|
hostdev:
|
|
|
|
enabled: true
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /dev
|
|
|
|
mountPath: /hostdev
|
|
|
|
|
2024-02-24 19:17:44 +00:00
|
|
|
metrics:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
type: "servicemonitor"
|
|
|
|
endpoints:
|
|
|
|
- port: main
|
|
|
|
path: "{{ .Values.smartctl.metricsEndpoint }}"
|
|
|
|
portal:
|
|
|
|
open:
|
|
|
|
enabled: false
|
|
|
|
smartctl:
|
|
|
|
metricsEndpoint: "/metrics"
|
|
|
|
pollInterval: "60s"
|
|
|
|
rescanInterval: "10m"
|
|
|
|
excludedDevices: ""
|
|
|
|
logs:
|
|
|
|
general:
|
|
|
|
level: info
|
|
|
|
format: logfmt
|
2024-03-01 14:14:43 +00:00
|
|
|
|
|
|
|
configmap:
|
|
|
|
dashboard:
|
|
|
|
enabled: true
|
|
|
|
labels:
|
|
|
|
grafana_dashboard: "1"
|
|
|
|
data:
|
|
|
|
smartctl.json: >-
|
2024-03-05 19:26:49 +00:00
|
|
|
{{ .Files.Get "dashboard.json" | indent 8 }}
|