Merge branch 'promtail-consul-modify' of kazu634/itamae into master
This commit is contained in:
commit
40e1b4005e
|
@ -328,6 +328,7 @@ scrape_configs:
|
||||||
labels:
|
labels:
|
||||||
job: consul
|
job: consul
|
||||||
hostname: <%= @HOSTNAME %>
|
hostname: <%= @HOSTNAME %>
|
||||||
|
level: info
|
||||||
__path__: /var/log/supervisor/consul.log
|
__path__: /var/log/supervisor/consul.log
|
||||||
|
|
||||||
pipeline_stages:
|
pipeline_stages:
|
||||||
|
@ -335,7 +336,7 @@ scrape_configs:
|
||||||
selector: '{job="consul"}'
|
selector: '{job="consul"}'
|
||||||
stages:
|
stages:
|
||||||
- regex:
|
- regex:
|
||||||
expression: '^ +(?P<timestamp>\d+-\d+-[^T]+T\d+:\d+:\d+\.\d+\+\d+) \[(?P<level>[^\]]+)\] (?P<message>.+)$'
|
expression: '^ +(?P<timestamp>\d+-\d+-[^T]+T\d+:\d+:\d+\.\d+\+\d+) \[(?P<level>[^\]]+)\] *(?P<message>.+)$'
|
||||||
|
|
||||||
- timestamp:
|
- timestamp:
|
||||||
source: timestamp
|
source: timestamp
|
||||||
|
|
Loading…
Reference in New Issue