update metrics port to look for metrics in the port name vs excluding ports

add some more log lines
This commit is contained in:
Edward Welch
2024-10-24 15:06:30 +00:00
parent c4af598b75
commit 58b438cdb5
2 changed files with 5 additions and 3 deletions

View File

@@ -120,9 +120,9 @@ data:
replacement = "{{- .Values.clusterLabelValue -}}"
}
rule {
source_labels = ["__meta_kubernetes_pod_container_port_number"]
action = "drop"
regex = "9095"
source_labels = ["__meta_kubernetes_pod_container_port_name"]
action = "keep"
regex = ".*metrics.*"
}
}