Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test the Prometheus gather The "gauge should be a Counter" error doesn't present until the Prometheus module attempts to gather the metrics for display (see https://github.com/prometheus/client_golang/blob/4efc3ccc7a660996803fff4721a2643b33dc3f77/prometheus/registry.go#L610). This test runs through the test varnishstat files and collects them into a Prometheus registry and then calls `Gather()` to ensure there are no errors. * Add test for varnish 3 scraping and gathering * Remove the `main_n_ban` grouping. This is no longer used in Varnish 4+ as the metric was renamed to `n_bans` rather than `n_ban`. And in Varnish 3 it breaks as the `n_ban` and `n_ban_gone` are `i` (Integer) flags while all the other `n_ban*` metrics are `a` (Accumulator) flags. (See https://github.com/varnishcache/varnish-cache/blob/3.0/include/vsc_fields.h#L142-L148) * Revert accidental update to go.mod
- Loading branch information