Storj-Exporter
Storj-Exporter copied to clipboard
Added timeout as env variable to avoid timeout on API Storj payout
Added timeout as env variable to avoid timeout on API Storj payout. New Default 90s
Tip: You should increase your scrape_interval in prometheus to avoid saturation on your node
Can we merge this? I need this update since there is an error with the timeout reading metric in two of my nodes.
I've been hitting this too. API Timeout would definitely help. @anclrii - Tagging for visibility.
I've tested your changes by manually updating the __main__.py
within my docker deployment (yikes), and was able to successfully get data to return (Took roughly 28 seconds). I've also needed to update the following within my Prometheus config for the individual JOB that scrapes the endpoint presented:
scrape_timeout: 90s
scrape_interval: 90s
and this works as expected. My dashboard now repopulated that Storj node, and metrics were as expected.
I've implemented this change and pushed to docker here: https://github.com/TheChrisTech/Storj-Exporter (I don't want to drive traffic from this repo, but I got tired of waiting).