author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 4 Nov 2015 21:57:00 +0000 (22:57 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 4 Nov 2015 22:12:40 +0000 (23:12 +0100) | ||
commit | d010d9eff882765201359959a583033dae4b373c | |
tree | c777a4bcad7a1902f9485e4e213755e6119d944c | tree | snapshot |
parent | b208ddc7d08978f4cf52364c1935e94a0479ee42 | commit | diff |
varnish: rework v3 and v4 support
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 #1302
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 #1302
src/varnish.c | diff | blob | history |