UPC / ravada

Remote Virtual Desktops Manager
https://ravada.upc.edu/
GNU Affero General Public License v3.0
543 stars 174 forks source link

Status/health page for monitoring purposes #2044

Closed jlopezramos closed 5 months ago

jlopezramos commented 5 months ago

Hi,

in order to integrate Ravada in some monitors/status page, it would be great to add a minimal endpoint (something like /HealthStatus or /Status) with basic information, preferably in plain text or json format.

Minimal info like frontend/backend status would be great, but some extra info could be useful for someone. An example of what could be:

{
    "frontend": "true",
    "backend": "true",
    "nodes": [
        {
            "name": "node01",
            "status": "active"
        },
        {
            "name": "node02",
            "status": "active"
        },
        {
            "name": "node03",
            "status": "disabled"
        }
    ]
}

If the endpoint does not require authorization (or it can be IP filtered), the better.

Some of simple status/health monitors only check URLs (public or private) or TCP/UDP ports, and checking the status of Ravada's backend can be complicated without using third-party software/monitors integrations. With this, it would be easy to achieve something like this:

image

Thank you very much!