On Tue, 22 Sep 2020 at 16:21, Dan Rice <[email protected]> wrote:
> Hi all! > > I am writing an exporter that pulls stats from a remote API to which I > need to limit my requests -- ideally to no more than like 100-200 per day. > Which of these is my best option for keeping the number of requests low? > > 1. Exporter queries the remote API at each scrape but I increase > scrape interval for this target. Can it practically be longer than 2 > minutes these days? > > > > 1. Exporter caches the remote API data and reports the values back to > Prometheus as current. > > This is the only really practical option when you can only hit the API every 15m. The others will cause you issues with staleness. Brian > > 1. Exporter caches the remote API data and reports the values back to > Prometheus with timestamps. > > Or is there something I’m not thinking of? > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/60c04a76-c574-4c39-8511-24ce1cfa9c37n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/60c04a76-c574-4c39-8511-24ce1cfa9c37n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Brian Brazil www.robustperception.io -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAHJKeLrzddkaLqO9RYA1YXCSAQEaegfM7t2SpaeuK_zd72AChA%40mail.gmail.com.

