Code Review
/
salt-formulas
/
influxdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b4cb8ab
)
Add host label to influxdb_relay targets
11/17711/1
release/2018.4.0
author
Dmitry Kalashnik
<dkalashnik@mirantis.com>
Tue, 27 Mar 2018 09:50:39 +0000
(13:50 +0400)
committer
Dmitry Kalashnik
<dkalashnik@mirantis.com>
Tue, 27 Mar 2018 09:50:39 +0000
(13:50 +0400)
Change-Id: Ic6522dd24b957cc486a84f6e816012e761ddac77
PROD-related: PROD-18671
influxdb/meta/prometheus.yml
patch
|
blob
|
history
diff --git
a/influxdb/meta/prometheus.yml
b/influxdb/meta/prometheus.yml
index affbd77048eaba6ac4a9430555d39ae5300653ce..d86de7ad40bd9fdfa8dc22e9451f62305c47b5a8 100644
(file)
--- a/
influxdb/meta/prometheus.yml
+++ b/
influxdb/meta/prometheus.yml
@@
-152,6
+152,11
@@
server:
endpoint:
- address: {{ addresses[0] }}
port: {{ relay.telemetry.bind.port }}
+ relabel_configs:
+ - regex: {{ addresses[0] }}:{{ relay.telemetry.bind.port }}
+ replacement: {{ grains['host'] }}
+ source_labels: "__address__"
+ target_label: "host"
{%- endif %}