it requires a helper script on the host because swarm doesn't support privileged mode Reviewed-on: #25 Reviewed-by: Danny Groenewegen <247+dannygroenewegen@noreply.git.coopcloud.tech> Co-authored-by: f <f@sutty.nl>
18 lines
397 B
YAML
18 lines
397 B
YAML
---
|
|
version: "3.8"
|
|
services:
|
|
smartctl:
|
|
image: "prometheuscommunity/smartctl-exporter:v0.14.0"
|
|
volumes:
|
|
- "/var/lib/smartmontools/json:/debug"
|
|
command:
|
|
- "--smartctl.fake-data"
|
|
- "--smartctl.interval=1h"
|
|
networks:
|
|
- "proxy"
|
|
deploy:
|
|
labels:
|
|
- "prometheus.io/scrape=true"
|
|
- "prometheus.io/port=9633"
|
|
- "prometheus.io/path=/metrics"
|