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
|
||||
|
@ -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
|
||||
|
|
|
@ -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