File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,17 @@ spec:
4040 - sourceLabels :
4141 - __meta_kubernetes_pod_container_name
4242 # Pods show up twice due to multiple containers, we only keep the main / product container.
43- # Except for Airflow and Superset, where we chose the metrics container.
43+ # Except for Airflow and Superset, where we choose the metrics container.
4444 # - airflow: airflow
4545 # - superset: superset
4646 # - empty: filter when container label does not exist: hdfs
4747 regex : ^(airflow|superset|)$
4848 action : drop
49+ - sourceLabels :
50+ - __meta_kubernetes_service_annotation_prometheus_io_clusterdomain
51+ targetLabel : __cluster_domain__
52+ regex : ^$
53+ replacement : " cluster.local"
4954 - sourceLabels :
5055 - __meta_kubernetes_service_annotation_prometheus_io_scheme
5156 action : replace
@@ -59,12 +64,12 @@ spec:
5964 - sourceLabels :
6065 - __meta_kubernetes_service_name
6166 - __meta_kubernetes_namespace
67+ - __cluster_domain__
6268 - __meta_kubernetes_service_annotation_prometheus_io_port
6369 action : replace
6470 targetLabel : __address__
65- regex : (.+);(.+);(\d+)
66- # TODO: We could set the cluster domain via annotation as well and pick it up here.
67- replacement : $1.$2.svc.cluster.local:$3
71+ regex : (.+);(.+);(.+);(\d+)
72+ replacement : $1.$2.svc.$3:$4
6873 tlsConfig :
6974 ca :
7075 secret :
You can’t perform that action at this time.
0 commit comments