ncabatoff / script-exporter

Prometheus exporter to invoke scripts and parse their output as metrics.
MIT License
37 stars 20 forks source link

race condition in HA environment #11

Open bennydubois opened 5 years ago

bennydubois commented 5 years ago

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

ncabatoff commented 5 years ago

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

bennydubois commented 5 years ago

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