RealTime Status Page

This VMOD that lets you query your Varnish server for a JSON object containing counters.

visiting the URL /rtstatus.json on the Varnish server will produce an application/json response of the following format:

{
    "Uptime" : 0+00:09:38,
    "hitrate": 0.00,
    "load": 1,
    "varnish_version" : "varnish-4.0.1 revision c6f20e4",
    "server_id": "arianna-ThinkPad-X230",
    "client_id": "127.0.0.1",
    "backend": [{"director_name" : "simple" , "name":"default", "value": "healthy"},
            {"director_name" : "simple" , "name":"server1", "value": "healthy"},
            {"director_name" : "simple" , "name":"server2", "value": "healthy"}],
    "MAIN.uptime": {"type": "MAIN", "descr": "Child process uptime", "value": 578},
    "VBE.server1(192.168.0.10,,8081).vcls": {"type": "VBE", "ident": "server1(192.168.0.10,,8081)", "descr": "VCL references", "value": 1},
    "VBE.server1(192.168.0.10,,8081).happy": {"type": "VBE", "ident": "server1(192.168.0.10,,8081)", "descr": "Happy health probes", "value": 0},
    "VBE.server1(192.168.0.10,,8081).bereq_hdrbytes": {"type": "VBE", "ident": "server1(192.168.0.10,,8081)", "descr": "Request header bytes", "value": 0},
}

visiting the URL /rtstatus on the Varnish server will produce an application/javascript response of the following format:

RTstatus frontend

 

Built originally for VG.no by Varnish Software.

Status: 
Used in production
Licence: 
Varnish version supported: 
Commercial support: 
Varnish Software