Change `Loki` endpoint to `loki.service.consul:3100`.
This commit is contained in:
parent
e8c01fc6ed
commit
80175d609c
|
@ -5,7 +5,7 @@ positions:
|
|||
filename: /var/opt/promtail/promtail_prometheus_position.yaml
|
||||
|
||||
clients:
|
||||
- url: http://192.168.10.118:3100/loki/api/v1/push
|
||||
- url: http://<%= @LOKIENDPOINT %>/loki/api/v1/push
|
||||
|
||||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
|
|
|
@ -8,7 +8,7 @@ node.reverse_merge!({
|
|||
'storage' => '/opt/promtail/bin/',
|
||||
'location' => '/usr/local/bin/',
|
||||
'data' => '/var/opt/promtail/',
|
||||
'lokiendpoint' => '192.168.10.118:3100'
|
||||
'lokiendpoint' => 'loki.service.consul:3100'
|
||||
},
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue