Skip to content

Commit

Permalink
job match now a regex
Browse files Browse the repository at this point in the history
  • Loading branch information
eabili0 committed Sep 24, 2019
1 parent 2c61bff commit 5cf470e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ scrape_configs:
{{if not (eq $scrapeMatch "")}}
params:
'match[]':
- '{job="{{$scrapeMatch}}"}'
- '{job=~"{{$scrapeMatch}}"}'
- '{__name__=~"dependency_up|up"}'
{{end}}
file_sd_configs:
Expand Down

0 comments on commit 5cf470e

Please sign in to comment.