Skip to content

Commit

Permalink
Merge pull request prometheus#2434 from stephen-soltesz/master
Browse files Browse the repository at this point in the history
Fix kubernetes host:port relabel regex.
  • Loading branch information
brancz authored Feb 17, 2017
2 parents 0436e98 + 3f29324 commit e14caf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/examples/prometheus-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ scrape_configs:
- source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
action: replace
target_label: __address__
regex: (.+)(?::\d+)?;(\d+)
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
- action: labelmap
regex: __meta_kubernetes_service_label_(.+)
Expand Down Expand Up @@ -174,7 +174,7 @@ scrape_configs:
regex: (.+)
- source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
action: replace
regex: (.+)(?::\d+)?;(\d+)
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
- action: labelmap
Expand Down

0 comments on commit e14caf8

Please sign in to comment.