Change `Loki` endpoint to `loki.service.consul:3100`.

This commit is contained in:
Kazuhiro MUSASHI 2020-10-12 23:20:49 +09:00
parent e8c01fc6ed
commit 80175d609c
2 changed files with 5 additions and 5 deletions

View File

@ -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
@ -33,7 +33,7 @@ scrape_configs:
location: Etc/UTC
- labels:
level:
level:
- output:
source: message
@ -63,7 +63,7 @@ scrape_configs:
location: Etc/UTC
- labels:
level:
level:
- output:
source: message
@ -104,7 +104,7 @@ scrape_configs:
template: '{{ regexReplaceAllLiteral "resolved" .Value "notice" }}'
- labels:
level:
level:
- output:
source: message

View File

@ -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'
},
})