Skip to content

Commit

Permalink
Add Prometheus traefik for federation et al
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Apr 11, 2022
1 parent 584d8ec commit 87f6b36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions default.env
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CF_API_TOKEN=SECRETTOKEN
AWS_PROFILE=myprofile
AWS_HOSTED_ZONE_ID=myzoneid
GRAFANA_HOST=grafana
PROM_HOST=prometheus
PRYSM_HOST=prysm
EC_HOST=ec
EC_WS_HOST=ecws
Expand Down
2 changes: 1 addition & 1 deletion ethd
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ envmigrate() {
fi
ALL_VARS=( COMPOSE_FILE EC_NODE EC_FALLBACK_NODE1 EC_FALLBACK_NODE2 GRAFFITI NETWORK EC_NETWORK \
PRYSM_PEER_COUNT LH_PEER_COUNT TEKU_PEER_COUNT NIM_PEER_COUNT DOMAIN ACME_EMAIL \
CF_EMAIL CF_API_TOKEN AWS_PROFILE AWS_HOSTED_ZONE_ID GRAFANA_HOST PRYSM_HOST \
CF_EMAIL CF_API_TOKEN AWS_PROFILE AWS_HOSTED_ZONE_ID GRAFANA_HOST PROM_HOST PRYSM_HOST \
EC_HOST EC_WS_HOST CC_HOST DDNS_SUBDOMAIN DDNS_PROXY TEKU_RAPID_SYNC LH_RAPID_SYNC LS_RAPID_SYNC \
NIMBUS_RAPID_SYNC CC_NODE BEACON_STATS_API BEACON_STATS_MACHINE EC_P2P_PORT CC_P2P_PORT PRYSM_PORT \
PRYSM_UDP_PORT GRAFANA_PORT KEY_API_PORT TRAEFIK_WEB_PORT TRAEFIK_WEB_HTTP_PORT \
Expand Down
10 changes: 10 additions & 0 deletions prometheus-traefik.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Prometheus federation, or other reasons to have prometheus through traefik
version: "3.4"
services:
prometheus:
labels:
- traefik.enable=true
- traefik.http.routers.prom.entrypoints=web,websecure
- traefik.http.routers.prom.rule=Host(`${PROM_HOST}.${DOMAIN}`)
- traefik.http.routers.prom.tls.certresolver=letsencrypt
- traefik.http.services.prom.loadbalancer.server.port=9090

0 comments on commit 87f6b36

Please sign in to comment.