Skip to content

Commit

Permalink
Fix label remapping
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Jan 24, 2025
1 parent b48180f commit 6020128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/prometheus/templates/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ scrape_configs:
- ooniprobe.dev.ooni.io
relabel_configs:
- source_labels: [__address__]
regex: ".*\.(prod|dev)\..*"
regex: "(prod|dev)"
target_label: environment
replacement: ${1}
replacement: "$1"

- job_name: 'oonith-prod'
scrape_interval: 5s
Expand Down

0 comments on commit 6020128

Please sign in to comment.