Skip to content

Latest commit

 

History

History
62 lines (35 loc) · 1.35 KB

File metadata and controls

62 lines (35 loc) · 1.35 KB

Varnish Module (VMOD) httpstats

// Place import statement at the top of your VCL file
// This loads vmod from a standard location
import httpstats;

// Or load vmod from a specific file
import httpstats from "path/to/libhttpstats.so";

Constructor httpstats.stats()

Create a new stats instance for tracking HTTP response codes

Method VOID <object>.record_backend(INT status)

Record a backend response by status code

Method VOID <object>.record_frontend(INT status)

Record a frontend response by status code

Method INT <object>.backend_2xx()

Get the count of backend 2xx responses

Method INT <object>.backend_3xx()

Get the count of backend 3xx responses

Method INT <object>.backend_4xx()

Get the count of backend 4xx responses

Method INT <object>.backend_5xx()

Get the count of backend 5xx responses

Method INT <object>.frontend_2xx()

Get the count of frontend 2xx responses

Method INT <object>.frontend_3xx()

Get the count of frontend 3xx responses

Method INT <object>.frontend_4xx()

Get the count of frontend 4xx responses

Method INT <object>.frontend_5xx()

Get the count of frontend 5xx responses