Try to replace prometheus
This commit is contained in:
@@ -1,21 +1,41 @@
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:v3.5.0
|
||||
container_name: prometheus
|
||||
# prometheus:
|
||||
# image: prom/prometheus:v3.5.0
|
||||
# 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:
|
||||
- /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"
|
||||
- /mnt/data/linux/config/monitoring/prometheus/config:/config
|
||||
- /mnt/data/linux/config/monitoring/vmagent/data:/vmagentdata
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 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"
|
||||
labels:
|
||||
org.label-schema.group: "monitoring"
|
||||
|
Reference in New Issue
Block a user