added victoriametrics
This commit is contained in:
@@ -21,6 +21,18 @@ services:
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
|
||||
victoriametrics:
|
||||
image: victoriametrics/victoria-metrics:latest
|
||||
container_name: victoria-metrics
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8428:8428" # VM Web UI + API + Prometheus-compatible read endpoint
|
||||
volumes:
|
||||
- victoria-metrics-data:/storage
|
||||
command:
|
||||
- "-storageDataPath=/storage"
|
||||
- "-retentionPeriod=24" # 24 Monate retention
|
||||
|
||||
redis:
|
||||
container_name: redis
|
||||
image: redis/redis-stack:latest
|
||||
@@ -47,5 +59,6 @@ services:
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
victoria-metrics-data:
|
||||
redis_data:
|
||||
driver: local
|
||||
|
||||
@@ -138,6 +138,20 @@ services:
|
||||
- /sys:/sys:ro
|
||||
networks:
|
||||
- core_network
|
||||
|
||||
victoriametrics:
|
||||
image: victoriametrics/victoria-metrics:latest
|
||||
container_name: victoria-metrics
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8428:8428" # VM Web UI + API + Prometheus-compatible read endpoint
|
||||
volumes:
|
||||
- victoria-metrics-data:/storage
|
||||
command:
|
||||
- "-storageDataPath=/storage"
|
||||
- "-retentionPeriod=24" # 24 Monate retention
|
||||
networks:
|
||||
- core_network
|
||||
prometheus:
|
||||
restart: unless-stopped
|
||||
image: prom/prometheus:latest
|
||||
|
||||
@@ -132,6 +132,20 @@ services:
|
||||
networks:
|
||||
- core_network
|
||||
restart: unless-stopped
|
||||
|
||||
victoriametrics:
|
||||
image: victoriametrics/victoria-metrics:latest
|
||||
container_name: victoria-metrics
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8428:8428" # VM Web UI + API + Prometheus-compatible read endpoint
|
||||
volumes:
|
||||
- victoria-metrics-data:/storage
|
||||
command:
|
||||
- "-storageDataPath=/storage"
|
||||
- "-retentionPeriod=24" # 24 Monate retention
|
||||
networks:
|
||||
- core_network
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: prometheus
|
||||
|
||||
@@ -2,10 +2,7 @@ global:
|
||||
scrape_interval: 40s
|
||||
|
||||
remote_write:
|
||||
- url: https://prometheus-prod-36-prod-us-west-0.grafana.net/api/prom/push
|
||||
basic_auth:
|
||||
username: 2527367
|
||||
password: glc_eyJvIjoiMTMzOTM4MiIsIm4iOiJzdGFjay0xMzAxNTY2LWFsbG95LWxvY2FsLWRldiIsImsiOiI1YkM0SkFvODU3NjJCaTFlQnkwY0xySjEiLCJtIjp7InIiOiJwcm9kLXVzLXdlc3QtMCJ9fQ==
|
||||
- url: "http://victoriametrics:8428/api/v1/write"
|
||||
|
||||
scrape_configs:
|
||||
- job_name: core-server
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
global:
|
||||
scrape_interval: 40s
|
||||
|
||||
remote_write:
|
||||
- url: "http://victoriametrics:8428/api/v1/write"
|
||||
|
||||
scrape_configs:
|
||||
- job_name: core-server
|
||||
static_configs:
|
||||
|
||||
Reference in New Issue
Block a user