When using often-shipped scripts to reload varnish VCLs, the backend names changes from "boot" to reload_xxxxx.
Initially, metrics would be exported with default, then after one reload it would be reload_20191016_072034_54500.default.
The varnish_reload_vcl script as shipped with Varnish 4 packages uses one format,
and varnishreload shipped with 6+ packages uses a slightly different.
This covers both.
Note: this is my very first attempt on Go coding, so feel free to point out improvements!
When using often-shipped scripts to reload varnish VCLs, the backend names changes from "boot" to reload_xxxxx.
Initially, metrics would be exported with
default
, then after one reload it would bereload_20191016_072034_54500.default
.The varnish_reload_vcl script as shipped with Varnish 4 packages uses one format, and varnishreload shipped with 6+ packages uses a slightly different. This covers both.
Note: this is my very first attempt on Go coding, so feel free to point out improvements!