add prometheus dat asource

This commit is contained in:
PxlLoewe
2025-06-28 21:19:20 -07:00
parent 8a44c24f23
commit 1a9a7c2dae
2 changed files with 3 additions and 17 deletions

View File

@@ -108,9 +108,6 @@ services:
- "traefik.http.services.dispatch-server.loadBalancer.sticky.cookie.name=server_id"
- "traefik.http.services.dispatch-server.loadBalancer.sticky.cookie.httpOnly=true"
- "traefik.http.services.dispatch-server.loadbalancer.server.port=3000"
- "prometheus.scrape=true"
- "prometheus.port=3000"
networks:
- discord_network
- postgres_network

View File

@@ -8,17 +8,6 @@ remote_write:
password: glc_eyJvIjoiMTMzOTM4MiIsIm4iOiJzdGFjay0xMzAxNTY2LWFsbG95LWxvY2FsLWRldiIsImsiOiI1YkM0SkFvODU3NjJCaTFlQnkwY0xySjEiLCJtIjp7InIiOiJwcm9kLXVzLXdlc3QtMCJ9fQ==
scrape_configs:
- job_name: "docker-services"
docker_sd_configs:
- host: unix:///var/run/docker.sock
refresh_interval: 30s
relabel_configs:
- source_labels: [__meta_docker_container_label_prometheus_scrape]
action: keep
regex: true
- source_labels: [__meta_docker_container_label_prometheus_port]
target_label: __address__
regex: (.+)
replacement: $1
- job_name: dispatch-server
static_configs:
- targets: ["https://api.dispatch.premiumag.de"]