Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

prometheus: envoy-statsd job ignore pods that don't have the statsd port annotation #133

Merged
merged 1 commit into from
Jun 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deployment/prometheus/02-prometheus-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ data:
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
action: keep
regex: true
# Only scrape pods that have the statsdport annotation set to a number
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_statsdport]
action: keep
regex: ^\d+$
- source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_statsdport]
action: replace
regex: ([^:]+)(?::\d+)?;(\d+)
Expand Down