monitoring: add traefik to prometheus

This commit is contained in:
Iurii Tatishchev 2023-07-09 17:57:16 -07:00
parent de37042061
commit 30a2744830
Signed by: CaZzzer
GPG Key ID: 9A156B7DA6398968
2 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,10 @@ scrape_configs:
static_configs:
- targets: ["{{ ansible_host }}:9110"]
- job_name: "traefik"
static_configs:
- targets: ["{{ ansible_host }}:8082"]
- job_name: "loki"
static_configs:
- targets: ["loki:3100"]

View File

@ -18,6 +18,12 @@ entryPoints:
address: ":443"
http3:
advertisedPort: 443
metrics:
address: ":8082"
metrics:
prometheus:
entryPoint: metrics
certificatesResolvers:
letsencrypt: