Skip to content

Commit

Permalink
Relabel prometheus metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Coelho <[email protected]>
  • Loading branch information
gutorc92 authored and eabili0 committed Jun 18, 2020
1 parent ce7ff7f commit 1a33f1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prometheus.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ rule_files:

scrape_configs:
- job_name: 'prometheus'
metric_relabel_configs:
- source_labels: ["__name__"]
regex: "prometheus_.*"
target_label: "instance"
replacement: "{{.prometheusServer}}"
static_configs:
- targets: ['localhost:9090']

Expand Down

0 comments on commit 1a33f1e

Please sign in to comment.