Increasing the metric buffer (#8145)

This commit is contained in:
M0rdecay 2020-09-18 20:50:22 +03:00 committed by GitHub
parent 191688ce51
commit 39f4c365b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ func (e *Execd) Stop() error {
func (e *Execd) cmdReadOut(out io.Reader) {
scanner := bufio.NewScanner(out)
scanBuf := make([]byte, 4096)
scanner.Buffer(scanBuf, 262144)
for scanner.Scan() {
metrics, err := e.parser.Parse(scanner.Bytes())