traefik/integration/fixtures/tracing/simple-opentelemetry.toml

90 lines
2.2 KiB
TOML
Raw Normal View History

2019-07-15 12:52:04 +00:00
[global]
checkNewVersion = false
sendAnonymousUsage = false
[log]
level = "DEBUG"
2022-11-21 17:36:05 +00:00
noColor = true
2019-07-15 12:52:04 +00:00
[api]
2019-09-06 13:08:04 +00:00
insecure = true
2019-07-15 12:52:04 +00:00
[ping]
2019-07-15 12:52:04 +00:00
[entryPoints]
[entryPoints.web]
address = ":8000"
[tracing]
servicename = "tracing"
2024-01-08 08:10:06 +00:00
sampleRate = 1.0
{{if .IsHTTP}}
[tracing.otlp.http]
endpoint = "http://{{.IP}}:4318"
{{else}}
[tracing.otlp.grpc]
endpoint = "{{.IP}}:4317"
insecure = true
{{end}}
2019-07-15 12:52:04 +00:00
[providers.file]
filename = "{{ .SelfFilename }}"
## dynamic configuration ##
[http.routers]
2024-01-08 08:10:06 +00:00
[http.routers.router0]
Service = "service0"
Middlewares = []
Rule = "Path(`/basic`)"
2019-07-15 12:52:04 +00:00
[http.routers.router1]
Service = "service1"
2019-09-03 12:34:04 +00:00
Middlewares = ["retry", "ratelimit-1"]
2019-07-15 12:52:04 +00:00
Rule = "Path(`/ratelimit`)"
[http.routers.router2]
Service = "service2"
Middlewares = ["retry"]
Rule = "Path(`/retry`)"
[http.routers.router3]
Service = "service3"
Middlewares = ["retry", "basic-auth"]
Rule = "Path(`/auth`)"
[http.routers.customPing]
entryPoints = ["web"]
rule = "PathPrefix(`/ping`)"
service = "ping@internal"
2019-07-15 12:52:04 +00:00
[http.middlewares]
[http.middlewares.retry.retry]
attempts = 3
[http.middlewares.basic-auth.basicAuth]
users = ["test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/", "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0"]
2019-09-03 12:34:04 +00:00
[http.middlewares.ratelimit-1.rateLimit]
average = 1
burst = 2
2019-07-15 12:52:04 +00:00
[http.services]
2024-01-08 08:10:06 +00:00
[http.services.service0]
[http.services.service0.loadBalancer]
passHostHeader = true
[[http.services.service0.loadBalancer.servers]]
url = "http://{{.WhoamiIP}}:{{.WhoamiPort}}"
2019-07-15 12:52:04 +00:00
[http.services.service1]
[http.services.service1.loadBalancer]
passHostHeader = true
[[http.services.service1.loadBalancer.servers]]
url = "http://{{.WhoamiIP}}:{{.WhoamiPort}}"
2019-07-15 12:52:04 +00:00
[http.services.service2]
[http.services.service2.loadBalancer]
passHostHeader = true
2019-07-15 12:52:04 +00:00
[[http.services.service2.loadBalancer.servers]]
url = "http://{{.WhoamiIP}}:{{.WhoamiPort}}"
2019-07-15 12:52:04 +00:00
[http.services.service3]
[http.services.service3.loadBalancer]
passHostHeader = true
2019-07-15 12:52:04 +00:00
[[http.services.service3.loadBalancer.servers]]
url = "http://{{.WhoamiIP}}:{{.WhoamiPort}}"