Skip to content

Commit

Permalink
update metrics port to look for metrics in the port name vs excludi…
Browse files Browse the repository at this point in the history
…ng ports

add some more log lines
  • Loading branch information
slim-bean committed Oct 24, 2024
1 parent c4af598 commit 58b438c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/meta-monitoring/templates/agent/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*"
}
}
Expand Down
2 changes: 2 additions & 0 deletions charts/meta-monitoring/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58b438c

Please sign in to comment.