Modify `promtail` config for `digdag`.

This commit is contained in:
Kazuhiro MUSASHI 2020-11-14 12:33:43 +09:00
parent 2cde00de76
commit a018a86c4a
1 changed files with 4 additions and 12 deletions

View File

@ -18,8 +18,11 @@ scrape_configs:
hostname: <%= @HOSTNAME %>
__path__: /var/log/supervisor/digdag.log
pipeline_stages:
- match:
selector: '{job="digdag"} !~ "^[0-9]+-[0-9]+-[0-9]+"'
action: drop
- match:
selector: '{job="digdag"} |~ "^[0-9]+-[0-9]+-[0-9]+"'
@ -52,14 +55,3 @@ scrape_configs:
- output:
source: message
- match:
selector: '{job="digdag"} !~ "^[0-9]+-[0-9]+-[0-9]+"'
stages:
- template:
source: level
template: 'info'
- labels:
level: