Hello there!
I’ve just began to explore the Peertube metrics and I’d like to understand a little bit more how they work.
There’s the /api/v1/server/stats
endpoint, the only metrics endpoint (isn’t it?). There you can find a lot of interesting metrics.
The question begs, how are those metrics generated and when?
- The metrics are stored on the database and this endpoint just launches a query to the database?
- The query updates the metrics somehow and gets them in real time?
- Is a way to modify in some way the output of the metrics? (range, periodic execution, whatever)
As far as I’ve seen, it seems to update them every three hours, isn’t it? At least is what I’m able to see.
The changes I’ve seen every three hours are these. Since I’m new I only can post one image and two link, so I’ll just link a couple of them.
- http://imagenes.daemons.it:5280/upload/wafl8cghV1BMcCIp/2022-06-26-223346_1820x480_scrot.png
- http://imagenes.daemons.it:5280/upload/PEZyxDwmZWuB13Qn/2022-06-26-223358_1837x732_scrot.png
Thanks for your time.