sidekiq icon indicating copy to clipboard operation
sidekiq copied to clipboard

Metrics web pages should refresh minutely?

Open mperham opened this issue 3 years ago • 4 comments

The metrics home page is a great candidate for a dashboard on a TV on a wall but it needs to auto-refresh for that purpose. Should we configure /metrics to refresh at the top of each minute?

mperham avatar Sep 01 '22 16:09 mperham

I might take a look at this tomorrow, really looking forward to metrics 😍

davidwessman avatar Sep 01 '22 17:09 davidwessman

Should we use the existing live-poll-functionality, hard refresh or something custom?

If we are using the live-poll, we need to

  • remove chart
  • replace content
  • initialize new chart

then the charts will flicker like in the video below: https://user-images.githubusercontent.com/6763624/188074993-228ac085-ece0-4723-8d0e-27f4663d6157.mov

If we want flicker-free updates we need to handle the table via javascript as well.

davidwessman avatar Sep 02 '22 06:09 davidwessman

I envision the page only fetching the latest minute value and updating the graph/table. I don't think it would be good to refresh the entire page/content.

mperham avatar Sep 02 '22 14:09 mperham

Will look into reworking the table to fit with that vision.

davidwessman avatar Sep 02 '22 16:09 davidwessman

@mperham What branch should I base my changes on now until version 7 is released?

davidwessman avatar Oct 05 '22 19:10 davidwessman

Main. 6.x is closed except for important bug fixes.

mperham avatar Oct 05 '22 19:10 mperham