linuxserver / Heimdall-Apps

Apps for Heimdall
MIT License
298 stars 321 forks source link

Request: [uptime kuma] Include uptime kuma in enhanced app to display number monitors up and down #666

Closed navilg closed 6 months ago

navilg commented 8 months ago

Enhance uptime kuma from foundation app to enhanced app with feature to display number of monitors which are UP and DOWN.

imnotjames commented 6 months ago

added in #706 cause I'm using it and it's helpful to have

Screenshot 2024-02-28 at 03-54-49 Heimdall

navilg commented 6 months ago

Thanks

Noschvie commented 6 months ago

Hello Where is the polling interval coded for the Uptime-Kuma metrics end point? Thanks

imnotjames commented 6 months ago

Hello Where is the polling interval coded for the Uptime-Kuma metrics end point? Thanks

I'm not sure I understand your question - like how often Heimdall checks these values? That's part of Heimdall core and it isn't configurable to my knowledge.

Is something not working as expected?

Noschvie commented 6 months ago

It' working well. Thanks! I just want to know how often Heimdall core checks these values ? Maybe someone can link the code line.

navilg commented 6 months ago

Heimdall doesnot poll the metrics on interval. It only polls when Heimdall page is loaded first time or the page is refeshed.

imnotjames commented 6 months ago

Yeah, I think that's general for all Heimdall apps.

You can probably open an issue on Heimdall core if you'd like to learn more about that.

https://github.com/linuxserver/Heimdall/blob/2.x/resources/assets/js/liveStatRefresh.js

It looks like there's a 30s refresh if it's inactive and 5s if "active" - which for uptime kuma, is if there's a down monitor

Noschvie commented 6 months ago

Thanks!

mvdkleijn commented 6 months ago

I see the answers are already nicely given, for which my thanks.

Please close this issue if your questions were answered.

My two cents by the way:

the intention of the stats on Heimdall apps is not really to provide a live view but to provide a convenient overview.

If you really need a fast, regular update have Uptime Kuma open directly would be a better option.

Also connecting Uptime Kuma's notifications to Telegram for example works quite nicely.