Re: [prometheus-users] Re: How do you deal with rarely updated values

2020-02-20 Thread Brian Candler
I think a gauge is the right thing here: it represents the amount of time taken to rebuild the last configuration. You can just scrape this periodically (say every minute), and easily see if it goes up or down over time. Of course, most of the time you'll be scraping the same value - but that'

Re: [prometheus-users] Re: How do you deal with rarely updated values

2020-02-20 Thread Лоик
> > Or, wait, are you writing a new exporter? No I'm writing a service discovery for docker swarm. The metrics I had issue with are measuring the time spent building the file to expose the service being discovered. I'm using the docker event API to rebuild configuration only when services are bei