DashMachine icon indicating copy to clipboard operation
DashMachine copied to clipboard

Watchdog panel

Open rmountjoy92 opened this issue 5 years ago • 0 comments

It would be really cool to have an optional ‘watchdog’ panel.

Personally I'd like it to take up like 20% of the sceen on the right or so (like s2 or s4 in materialize) and display a compact-ish list of ‘icon name status_icon’ for the services I host.

From the technical perspective I imagine it using:

Ping for when the most simple up\down check is required GET request that attempts to load a page and reports it as “online” if it's response is 200 OK, and “offline” if it's anything else (or separate ones for 503 error as that is 100% service is down, and 404 could be yellow indicator?) REST + Condition for when a service returns a JSON with a status or resulting page has to contain specific text string and when simple GET may not be enough I imagine first two would cover most situations, with the third one being “for later”.

I was about to start writing my own dash when I remembered about this one that I've seen just a few days ago, and since it is writtien in my favorite combo of Python+Flask I'd be willing to contribute. I usually use bootstrap4 but materialize actually seems like a better choice here, so that's good too :)

P.S.: The “fuck” commit comment I totally did not imagine it said in Geralt from Netflix's The Witcher manner.

P.P.S.: If you wanna discuss it poke me on discord, I may have questions when I start poking around in the code :D Nix#8175

rmountjoy92 avatar Feb 24 '20 01:02 rmountjoy92