Give up
This commit is contained in:
@@ -16,35 +16,35 @@ services:
|
||||
# extra_hosts:
|
||||
# - "host.docker.internal:host-gateway"
|
||||
|
||||
vmagent:
|
||||
image: victoriametrics/vmagent:latest
|
||||
container_name: vmagent
|
||||
volumes:
|
||||
- /mnt/data/linux/config/monitoring/prometheus/config:/config
|
||||
- /mnt/data/linux/config/monitoring/vmagent/data:/vmagentdata
|
||||
command:
|
||||
- '--promscrape.config=/config/prometheus.yml'
|
||||
- '--remoteWrite.url=http://127.0.0.1:8428/api/v1/write'
|
||||
- '--httpListenAddr=:43261'
|
||||
- '--remoteWrite.maxDiskUsagePerURL=2GB'
|
||||
- '--promscrape.discovery.concurrency=10'
|
||||
- '--promscrape.suppressScrapeErrors=false'
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
# vmagent:
|
||||
# image: victoriametrics/vmagent:latest
|
||||
# container_name: vmagent
|
||||
# volumes:
|
||||
# - /mnt/data/linux/config/monitoring/prometheus/config:/config
|
||||
# - /mnt/data/linux/config/monitoring/vmagent/data:/vmagentdata
|
||||
# command:
|
||||
# - '--promscrape.config=/config/prometheus.yml'
|
||||
# - '--remoteWrite.url=http://127.0.0.1:8428/api/v1/write'
|
||||
# - '--httpListenAddr=:43261'
|
||||
# - '--remoteWrite.maxDiskUsagePerURL=2GB'
|
||||
# - '--promscrape.discovery.concurrency=10'
|
||||
# - '--promscrape.suppressScrapeErrors=false'
|
||||
# network_mode: "host"
|
||||
|
||||
nodeexporter:
|
||||
image: prom/node-exporter:v1.8.2
|
||||
container_name: nodeexporter
|
||||
volumes:
|
||||
- /proc:/host/proc:ro
|
||||
- /sys:/host/sys:ro
|
||||
- /:/rootfs:ro
|
||||
command:
|
||||
- "--path.procfs=/host/proc"
|
||||
- "--path.rootfs=/rootfs"
|
||||
- "--path.sysfs=/host/sys"
|
||||
- "--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)"
|
||||
- "--web.listen-address=:56546"
|
||||
# nodeexporter:
|
||||
# image: prom/node-exporter:v1.8.2
|
||||
# container_name: nodeexporter
|
||||
# volumes:
|
||||
# - /proc:/host/proc:ro
|
||||
# - /sys:/host/sys:ro
|
||||
# - /:/rootfs:ro
|
||||
# command:
|
||||
# - "--path.procfs=/host/proc"
|
||||
# - "--path.rootfs=/rootfs"
|
||||
# - "--path.sysfs=/host/sys"
|
||||
# - "--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)"
|
||||
# - "--web.listen-address=:56546"
|
||||
# network_mode: "host"
|
||||
|
||||
# cadvisor:
|
||||
# image: gcr.io/google-containers/cadvisor:v0.34.0
|
||||
@@ -94,13 +94,15 @@ services:
|
||||
# network_mode: "host"
|
||||
# volumes:
|
||||
# - ./pinger/logs:/logs
|
||||
victoriametrics:
|
||||
image: victoriametrics/victoria-metrics
|
||||
container_name: victoriametrics
|
||||
volumes:
|
||||
- /mnt/data/linux/config/monitoring/victoriametrics/data:/victoria-metrics-data
|
||||
command:
|
||||
- "--retentionPeriod=100y"
|
||||
|
||||
# victoriametrics:
|
||||
# image: victoriametrics/victoria-metrics
|
||||
# container_name: victoriametrics
|
||||
# volumes:
|
||||
# - /mnt/data/linux/config/monitoring/victoriametrics/data:/victoria-metrics-data
|
||||
# command:
|
||||
# - "--retentionPeriod=100y"
|
||||
# network_mode: "host"
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana
|
||||
@@ -112,6 +114,8 @@ services:
|
||||
volumes:
|
||||
- '/mnt/data/persistent/monitoring/grafana/data:/var/lib/grafana'
|
||||
- '/mnt/data/persistent/monitoring/grafana/config:/etc/grafana'
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
|
Reference in New Issue
Block a user