Skip to content

Commit

Permalink
Merge pull request #73 from mfanjie/main
Browse files Browse the repository at this point in the history
fix regrex error in prometheus overrides
  • Loading branch information
qmhu authored Aug 13, 2022
2 parents ba54c4f + 9eed67d commit 9ca16d2
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions integration/prometheus/override_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,23 @@ extraScrapeConfigs: |-
- __meta_kubernetes_pod_name
- source_labels:
- __address__
regex: (.*)
regex: ([^:]+)(?::\d+)?
replacement: "${1}:8080"
target_label: __address__
- job_name: crane-agent
kubernetes_sd_configs:
- role: pod
relabel_configs:
- action: keep
regex: crane-system;crane-agent-(.+)
source_labels:
- __meta_kubernetes_namespace
- __meta_kubernetes_pod_name
- source_labels:
- __address__
regex: ([^:]+)(?::\d+)?
replacement: "${1}:8081"
target_label: __address__
server:
service:
annotations: { }
Expand Down

0 comments on commit 9ca16d2

Please sign in to comment.