You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the size of the buffer used in the cmdReadOut function to the processor parameters
Current behavior:
The buffer size is currently not configurable. For this reason, an attempt to get a large metric from an external processor fails with an error:
E! [processors.execd] Error reading stdout: bufio.Scanner: token too long
Desired behavior:
The buffer size can be adjusted so that the processor can handle large metrics.
Use case:
To work with XML, I have made a wrapper for the parser and work with it as with an external processor. The processor is written following the example from the README.
When processing large documents (~7 thousand lines), receiving data back from the processor fails. The reason is as follows - as a result of parsing, the processor can return a metric of 70-80 KiB.
Also, if this error occurs, the processor stops working and does not process the following metrics, which could fit in the default buffer.
The text was updated successfully, but these errors were encountered:
Wow. That's a large metric. It looks like line protocol limits a single field to 64 KB anyway. You might run into other problems even if we expand it, but I'm not against expanding the buffer size available for the metric. the change should be pretty straightforward, and doesn't necessarily have to be configurable.
This means that the error was not related to a protocol limitation - otherwise, I think, I would have received an error in the external processor even at the serialization stage.
Feature Request
Opening a feature request kicks off a discussion.
Proposal:
Add the size of the buffer used in the cmdReadOut function to the processor parameters
Current behavior:
The buffer size is currently not configurable. For this reason, an attempt to get a large metric from an external processor fails with an error:
Desired behavior:
The buffer size can be adjusted so that the processor can handle large metrics.
Use case:
To work with XML, I have made a wrapper for the parser and work with it as with an external processor. The processor is written following the example from the README.
When processing large documents (~7 thousand lines), receiving data back from the processor fails. The reason is as follows - as a result of parsing, the processor can return a metric of 70-80 KiB.
Also, if this error occurs, the processor stops working and does not process the following metrics, which could fit in the default buffer.
The text was updated successfully, but these errors were encountered: