Merge pull request #157 from grafana/update-metrics-port

update metrics port to look for `metrics` in the port name vs excludi…
This commit is contained in:
Ed Welch 2024-10-24 11:46:06 -04:00 committed by GitHub
commit 98e5ecd887
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

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

View File

@ -66,9 +66,11 @@ logs:
# The lines matching these will be kept in Loki # The lines matching these will be kept in Loki
retain: retain:
# This shows the queries # This shows the queries
- executing query
- caller=metrics.go - caller=metrics.go
# This shows any errors # This shows any errors
- level=error - level=error
- level=warn
# Log lines for delete requests # Log lines for delete requests
- delete request for user added - delete request for user added
- Started processing delete request - Started processing delete request