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
|
filename: /var/opt/promtail/promtail_prometheus_position.yaml
|
||||||
|
|
||||||
clients:
|
clients:
|
||||||
- url: http://192.168.10.118:3100/loki/api/v1/push
|
- url: http://<%= @LOKIENDPOINT %>/loki/api/v1/push
|
||||||
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: prometheus
|
- job_name: prometheus
|
||||||
|
@ -33,7 +33,7 @@ scrape_configs:
|
||||||
location: Etc/UTC
|
location: Etc/UTC
|
||||||
|
|
||||||
- labels:
|
- labels:
|
||||||
level:
|
level:
|
||||||
|
|
||||||
- output:
|
- output:
|
||||||
source: message
|
source: message
|
||||||
|
@ -63,7 +63,7 @@ scrape_configs:
|
||||||
location: Etc/UTC
|
location: Etc/UTC
|
||||||
|
|
||||||
- labels:
|
- labels:
|
||||||
level:
|
level:
|
||||||
|
|
||||||
- output:
|
- output:
|
||||||
source: message
|
source: message
|
||||||
|
@ -104,7 +104,7 @@ scrape_configs:
|
||||||
template: '{{ regexReplaceAllLiteral "resolved" .Value "notice" }}'
|
template: '{{ regexReplaceAllLiteral "resolved" .Value "notice" }}'
|
||||||
|
|
||||||
- labels:
|
- labels:
|
||||||
level:
|
level:
|
||||||
|
|
||||||
- output:
|
- output:
|
||||||
source: message
|
source: message
|
||||||
|
|
|
@ -8,7 +8,7 @@ node.reverse_merge!({
|
||||||
'storage' => '/opt/promtail/bin/',
|
'storage' => '/opt/promtail/bin/',
|
||||||
'location' => '/usr/local/bin/',
|
'location' => '/usr/local/bin/',
|
||||||
'data' => '/var/opt/promtail/',
|
'data' => '/var/opt/promtail/',
|
||||||
'lokiendpoint' => '192.168.10.118:3100'
|
'lokiendpoint' => 'loki.service.consul:3100'
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue