Commit 73fe6879 authored by Jérome Perrin's avatar Jérome Perrin

grafana: set `max_lines` for multi lines log scrapes with promtail

the default is 128 lines which is sometimes not enough
parent b1bacbc7
...@@ -23,7 +23,7 @@ md5sum = 86e379ac6ba789d65369ca1e0d4dfa3f ...@@ -23,7 +23,7 @@ md5sum = 86e379ac6ba789d65369ca1e0d4dfa3f
[instance-agent] [instance-agent]
filename = instance-agent.cfg.in filename = instance-agent.cfg.in
md5sum = eeb529b2b6a8e762a9072c520691c66c md5sum = c6bc76d39dd51b3072d2c47a9a2de7e9
[influxdb-config-file] [influxdb-config-file]
......
...@@ -568,8 +568,8 @@ init = ...@@ -568,8 +568,8 @@ init =
"stages": [ "stages": [
{ {
"multiline": { "multiline": {
# TODO this does not seem to work well
"firstline": "^------", "firstline": "^------",
"max_lines": 1024,
"max_wait_time": "5s" "max_wait_time": "5s"
} }
}, },
...@@ -628,6 +628,7 @@ init = ...@@ -628,6 +628,7 @@ init =
{ {
"multiline": { "multiline": {
"firstline": "^\\d{4}-\\d{2}-\\d{2}\\s\\d{1,2}\\:\\d{2}\\:\\d{2}\\,\\d{3}", "firstline": "^\\d{4}-\\d{2}-\\d{2}\\s\\d{1,2}\\:\\d{2}\\:\\d{2}\\,\\d{3}",
"max_lines": 1024,
"max_wait_time": "5s" "max_wait_time": "5s"
} }
}, },
...@@ -670,6 +671,7 @@ init = ...@@ -670,6 +671,7 @@ init =
# but the first line is not repeated for subsequent queries that happens # but the first line is not repeated for subsequent queries that happens
# at the same second # at the same second
"firstline": r"(^# Time: \d{2}.*\n^# User@Host:.*|^# User@Host:.*)", "firstline": r"(^# Time: \d{2}.*\n^# User@Host:.*|^# User@Host:.*)",
"max_lines": 1024,
"max_wait_time": "5s" "max_wait_time": "5s"
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment