Try to replace prometheus
This commit is contained in:
@@ -1,21 +1,41 @@
|
|||||||
services:
|
services:
|
||||||
prometheus:
|
# prometheus:
|
||||||
image: prom/prometheus:v3.5.0
|
# image: prom/prometheus:v3.5.0
|
||||||
container_name: prometheus
|
# container_name: prometheus
|
||||||
|
# volumes:
|
||||||
|
# - /mnt/data/linux/config/monitoring/prometheus/config:/etc/prometheus
|
||||||
|
# - /mnt/data/linux/config/monitoring/prometheus/data:/prometheus
|
||||||
|
# command:
|
||||||
|
# - "--config.file=/etc/prometheus/prometheus.yml"
|
||||||
|
# - "--storage.tsdb.path=/prometheus"
|
||||||
|
# - "--web.console.libraries=/etc/prometheus/console_libraries"
|
||||||
|
# - "--web.console.templates=/etc/prometheus/consoles"
|
||||||
|
# - "--storage.tsdb.retention.time=1d"
|
||||||
|
# - "--web.enable-lifecycle"
|
||||||
|
# - "--web.listen-address=:43261"
|
||||||
|
# restart: unless-stopped
|
||||||
|
# expose:
|
||||||
|
# - 43261
|
||||||
|
# network_mode: "host"
|
||||||
|
# labels:
|
||||||
|
# org.label-schema.group: "monitoring"
|
||||||
|
|
||||||
|
vmagent:
|
||||||
|
image: victoriametrics/vmagent:latest
|
||||||
|
container_name: vmagent
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/data/linux/config/monitoring/prometheus/config:/etc/prometheus
|
- /mnt/data/linux/config/monitoring/prometheus/config:/config
|
||||||
- /mnt/data/linux/config/monitoring/prometheus/data:/prometheus
|
- /mnt/data/linux/config/monitoring/vmagent/data:/vmagentdata
|
||||||
command:
|
|
||||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
||||||
- "--storage.tsdb.path=/prometheus"
|
|
||||||
- "--web.console.libraries=/etc/prometheus/console_libraries"
|
|
||||||
- "--web.console.templates=/etc/prometheus/consoles"
|
|
||||||
- "--storage.tsdb.retention.time=1d"
|
|
||||||
- "--web.enable-lifecycle"
|
|
||||||
- "--web.listen-address=:43261"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
expose:
|
expose:
|
||||||
- 43261
|
- 43261
|
||||||
|
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"
|
network_mode: "host"
|
||||||
labels:
|
labels:
|
||||||
org.label-schema.group: "monitoring"
|
org.label-schema.group: "monitoring"
|
||||||
|
Reference in New Issue
Block a user