forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Prometheus traefik for federation et al
- Loading branch information
1 parent
584d8ec
commit 87f6b36
Showing
3 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |