added victoriametrics

This commit is contained in:
PxlLoewe
2025-11-08 11:27:39 +01:00
parent cda2f272cc
commit e639ba6704
5 changed files with 45 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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: