script-exporter icon indicating copy to clipboard operation
script-exporter copied to clipboard

race condition in HA environment

Open bennydubois opened this issue 6 years ago • 2 comments

Having two Prometheus servers scrape script exporter in a HA setup causes a race condition where only one server gets the metrics.

Prometheus version: 2.8 Script exporter version: current build, not running in docker

bennydubois avatar May 22 '19 15:05 bennydubois

Have you tried increasing -script-workers from the default of 1?

ncabatoff avatar May 22 '19 23:05 ncabatoff

yes, I increased this setting up to 4 but there is still only one of the Prometheus servers that gets metrics at a time.

bennydubois avatar May 23 '19 15:05 bennydubois