First attempt at extracting access log fields to labels

This commit is contained in:
Marcus Noble 2021-07-04 10:09:02 +01:00
parent 7fa91de04f
commit 2b5e2eeff0

View File

@ -84,6 +84,14 @@ data:
- match:
selector: '{namespace="tekton-pipelines"}'
action: drop
- match:
selector: '{k8s_app="traefik-ingress-lb"}'
stages:
- json:
expressions:
request_host: RequestHost
- labels:
request_host:
kubernetes_sd_configs:
- role: pod
relabel_configs:
@ -146,6 +154,14 @@ data:
- match:
selector: '{namespace="tekton-pipelines"}'
action: drop
- match:
selector: '{k8s_app="traefik-ingress-lb"}'
stages:
- json:
expressions:
request_host: RequestHost
- labels:
request_host:
kubernetes_sd_configs:
- role: pod
relabel_configs:
@ -212,6 +228,14 @@ data:
- match:
selector: '{namespace="tekton-pipelines"}'
action: drop
- match:
selector: '{k8s_app="traefik-ingress-lb"}'
stages:
- json:
expressions:
request_host: RequestHost
- labels:
request_host:
kubernetes_sd_configs:
- role: pod
relabel_configs:
@ -284,6 +308,14 @@ data:
- match:
selector: '{namespace="tekton-pipelines"}'
action: drop
- match:
selector: '{k8s_app="traefik-ingress-lb"}'
stages:
- json:
expressions:
request_host: RequestHost
- labels:
request_host:
kubernetes_sd_configs:
- role: pod
relabel_configs:
@ -358,6 +390,14 @@ data:
- match:
selector: '{namespace="tekton-pipelines"}'
action: drop
- match:
selector: '{k8s_app="traefik-ingress-lb"}'
stages:
- json:
expressions:
request_host: RequestHost
- labels:
request_host:
kubernetes_sd_configs:
- role: pod
relabel_configs: