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