add traefik monitoring
This commit is contained in:
parent
a124d94d2e
commit
8c54c6eac9
@ -50,6 +50,12 @@ scrape_configs:
|
||||
metrics_path: /v1/metrics
|
||||
params:
|
||||
format: ['prometheus']
|
||||
- job_name: 'traefik-local'
|
||||
consul_sd_configs:
|
||||
- server: 'consul.service.consul:8500'
|
||||
services: ['traefik-local-admin','traefik-admin']
|
||||
|
||||
|
||||
EOH
|
||||
}
|
||||
|
||||
|
@ -90,6 +90,10 @@ job "traefik-ingress" {
|
||||
storage = "acme.json"
|
||||
[certificatesResolvers.myresolver.acme.httpChallenge]
|
||||
entryPoint= "web"
|
||||
[metrics]
|
||||
[metrics.prometheus]
|
||||
|
||||
|
||||
EOH
|
||||
destination = "local/traefik.toml"
|
||||
env = false
|
||||
|
@ -35,7 +35,7 @@ job "traefik-local" {
|
||||
}
|
||||
|
||||
service {
|
||||
name = "traefi-local-admin"
|
||||
name = "traefik-local-admin"
|
||||
port = "admin"
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
@ -100,6 +100,9 @@ job "traefik-local" {
|
||||
provider = "gandiv5"
|
||||
delayBeforeCheck = 0
|
||||
resolvers = ["173.246.100.133:53"]
|
||||
[metrics]
|
||||
[metrics.prometheus]
|
||||
|
||||
|
||||
|
||||
EOH
|
||||
|
Loading…
Reference in New Issue
Block a user