Skip to content

Commit

Permalink
infrastructure: cluster1: kube-prometheus-stack: Collect smartctl.
Browse files Browse the repository at this point in the history
  • Loading branch information
wigust committed Jan 28, 2024
1 parent 82e6796 commit a7f2e4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dotfiles/guixsd/guixsd.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ location / {
(service prometheus-smartctl-exporter-service-type
(prometheus-smartctl-exporter-configuration
(arguments
'("--web.listen-address=127.0.0.1:9633"
'("--web.listen-address=0.0.0.0:9633"
"--smartctl.path=/run/current-system/profile/sbin/smartctl"
"--smartctl.device=/dev/sda"
"--smartctl.device=/dev/sdb"
Expand Down
5 changes: 5 additions & 0 deletions infrastructure/cluster1/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ prometheus:
target_label: instance
- replacement: 192.168.0.145:9101
target_label: __address__
- static_configs:
- targets:
- 192.168.0.145:9633
scrape_interval: 10m
job_name: smartctl
ingress:
enabled: true
ingressClassName: nginx
Expand Down

0 comments on commit a7f2e4d

Please sign in to comment.