This module lets you query your Varnish server for a JSON object containing counters. For example, visiting the URL /rtstatus.json
on Varnish will produce an application/json
response in the following format:
{
"uptime" : "0+16:12:58",
"uptime_sec": 58378.00,
"hitrate": 30.93,
"load": 2.73,
"varnish_version" : "varnish-plus-4.1.2r1 revision 4d86388",
"server_id": "ubuntu-14",
"be_info":
[
{"server_name":"boot.default", "happy": 0, "bereq_tot": 13585163,"beresp_tot": 290463715,"pipe_hdrbytes": 0,"pipe_out": 0,"pipe_in": 0,"conn": 82094,"req": 82094},
{"server_name":"boot.server1", "happy": 0, "bereq_tot": 0,"beresp_tot": 0,"pipe_hdrbytes": 0,"pipe_out": 0,"pipe_in": 0,"conn": 0,"req": 0},
]
"VBE.boot.default.happy": {"type": "VBE", "ident": "boot.default", "descr": "Happy health probes", "value": 0},
"VBE.boot.default.bereq_hdrbytes": {"type": "VBE", "ident": "boot.default", "descr": "Request header bytes", "value": 13585163},
"VBE.boot.default.bereq_bodybytes": {"type": "VBE", "ident": "boot.default", "descr": "Request body bytes", "value": 0},
}
Whereas visiting the URL /rtstatus
on Varnish will produce an application/javascript
response.
0 Comments