modbus_exporter icon indicating copy to clipboard operation
modbus_exporter copied to clipboard

Auto-detect and handle continues range of metrics in a module.

Open rh363 opened this issue 10 months ago • 0 comments

The exporter now before scraping register of Slave server sort all module metrics splitting their in multiple continues intervals based on rangeSensitivity. Next execute only one request for fetch all data's and split it in Metric objects directly in memory.

Benchmark on 20 metrics:

Pre-commit: 7.280s

After-commit: 0.641s

modbus_exporter_comparision

Is also possible to disable range and set range sentitivity settings:

useRanges: false rangeSensitivity: 10

In root config or in Module.

rh363 avatar Feb 24 '25 14:02 rh363