diff --git a/charts/meta-monitoring/templates/agent/config.yaml b/charts/meta-monitoring/templates/agent/config.yaml index 36c111d..23b6e18 100644 --- a/charts/meta-monitoring/templates/agent/config.yaml +++ b/charts/meta-monitoring/templates/agent/config.yaml @@ -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.*" } } diff --git a/charts/meta-monitoring/values.yaml b/charts/meta-monitoring/values.yaml index a030128..82654e1 100644 --- a/charts/meta-monitoring/values.yaml +++ b/charts/meta-monitoring/values.yaml @@ -66,9 +66,11 @@ logs: # The lines matching these will be kept in Loki retain: # This shows the queries + - executing query - caller=metrics.go # This shows any errors - level=error + - level=warn # Log lines for delete requests - delete request for user added - Started processing delete request