Skip to content

Commit

Permalink
varnish: rework v3 and v4 support
Browse files Browse the repository at this point in the history
By using VSC_Iter() to loop over the list of metrics exposed by varnish,
we can pick those we're interested *if they are found*.

Not explicitly referring to metrics in the VSC_C_main struct makes the
plugin more resilient to small differences between minor varnish
versions.

It also opens the possibility to monitor non-MAIN metrics, such as
per-backend or per-storage engine stats.

This patch should be compatible with the previous way of doing, from the
user point of view.

Fix collectd#1302
  • Loading branch information
Marc Fournier committed Nov 4, 2015
1 parent b208ddc commit d010d9e
Showing 1 changed file with 399 additions and 3 deletions.
Loading

0 comments on commit d010d9e

Please sign in to comment.