add prometheus dat asource
This commit is contained in:
@@ -108,9 +108,6 @@ services:
|
|||||||
- "traefik.http.services.dispatch-server.loadBalancer.sticky.cookie.name=server_id"
|
- "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.sticky.cookie.httpOnly=true"
|
||||||
- "traefik.http.services.dispatch-server.loadbalancer.server.port=3000"
|
- "traefik.http.services.dispatch-server.loadbalancer.server.port=3000"
|
||||||
- "prometheus.scrape=true"
|
|
||||||
- "prometheus.port=3000"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- discord_network
|
- discord_network
|
||||||
- postgres_network
|
- postgres_network
|
||||||
|
|||||||
@@ -8,17 +8,6 @@ remote_write:
|
|||||||
password: glc_eyJvIjoiMTMzOTM4MiIsIm4iOiJzdGFjay0xMzAxNTY2LWFsbG95LWxvY2FsLWRldiIsImsiOiI1YkM0SkFvODU3NjJCaTFlQnkwY0xySjEiLCJtIjp7InIiOiJwcm9kLXVzLXdlc3QtMCJ9fQ==
|
password: glc_eyJvIjoiMTMzOTM4MiIsIm4iOiJzdGFjay0xMzAxNTY2LWFsbG95LWxvY2FsLWRldiIsImsiOiI1YkM0SkFvODU3NjJCaTFlQnkwY0xySjEiLCJtIjp7InIiOiJwcm9kLXVzLXdlc3QtMCJ9fQ==
|
||||||
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: "docker-services"
|
- job_name: dispatch-server
|
||||||
docker_sd_configs:
|
static_configs:
|
||||||
- host: unix:///var/run/docker.sock
|
- targets: ["https://api.dispatch.premiumag.de"]
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user