prometheus-community / PushProx

Proxy to allow Prometheus to scrape through NAT etc.
Apache License 2.0
719 stars 133 forks source link

Implement flags to control retry delays #83

Closed hansmi closed 3 years ago

hansmi commented 4 years ago

Add two new flags, "--proxy.retry.initial-wait" and "--proxy.retry.max-wait", controlling how long to sleep after encountering a proxy poll failure (i.e. network timeout). An exponential, randomized backoff algorithm is used to prevent thundering herds. Discussed in prometheus-community/PushProx#82.

SuperQ commented 4 years ago

In order to add the new external package, you will need to include the go modules and go mod vendor changes.

hansmi commented 4 years ago

[…] you will need to include the go modules and go mod vendor changes.

Of course. I somehow missed them in my git add. Also updated the commit message with more details.

SuperQ commented 3 years ago

You can now rebase against head with the removed vendor dir.

hansmi commented 3 years ago

@SuperQ done, rebased on top of master.