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