Updated traefik log processing

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-06-03 16:31:05 +01:00
parent a9c8e36931
commit 790c7304ab
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -126,6 +126,28 @@ data:
request_host: request_host:
request_method: request_method:
response_status: response_status:
- match:
selector: '{app="traefik"}'
stages:
- json:
expressions:
request_host: RequestHost
request_path: RequestPath
request_method: RequestMethod
response_status: OriginStatus
- drop:
source: "request_path"
value: "/healthz"
- drop:
source: "request_path"
value: "/health"
- drop:
source: "request_path"
value: "/ping"
- labels:
request_host:
request_method:
response_status:
kubernetes_sd_configs: kubernetes_sd_configs:
- role: pod - role: pod
relabel_configs: relabel_configs: