Modify `vector` config for `alertmanager`

This commit is contained in:
Kazuhiro MUSASHI 2023-03-04 21:51:54 +09:00
parent 8c95ba95ba
commit 1de33f97cb
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,9 @@ data_dir = "/var/lib/vector/"
.message = .msg
del(.msg)
minutes = parse_json(.minutes, ) ?? {}
. = merge!(., minutes)
.timestamp = .ts
del(.ts)
'''

View File

@ -7,6 +7,7 @@ data_dir = "/var/lib/vector/"
"consul",
"cron",
"snmp_exporter",
"alertmanager",
]
[sources.journald.exclude_matches]