[PATCH] varnish_ munin plugin

Jorge Nerín jnerin+varnish at gmail.com
Sun Mar 3 22:30:18 CET 2013

Hello, in the varnish_ munin plugin included with official munin package
and hosted at
http://munin-monitoring.org/browser/munin/plugins/node.d/varnish_.in it
says the official way to send patches is this list.

We have been using a modified varnish_ plugin for some time and I finally I
have taken the code in sync with current plugin in order to send upstream
our modifications.

Attached is a patch that does add a few values to some graphs:
* Add client_drop to request_rate graph.
* Add s_pass s_pipe to hit_rate graph (now they are closer to sum 100% as
we have ~3% of s_pass which weren't shown previously).
* Add backend_toolate & backend_retry to backend_traffic graph.
* Add n_wrk_lqueue & n_wrk_queued to threads graph.
* Add Transient memory to memory_usage graph.

In our old plugin we also have a graph that I'm not sure how to do now and
I think it's useful. It shows the average object size measured as:
                                'rpn' => [ 'SMF_s0_g_bytes',
'SMA_s0_g_bytes', '+', 'n_object', '/' ]

We sum the values of the two storages because at one time we switched from
the file storage to the malloc storage and we lost the graphs. Usually one
will be zero and the other will be the current memory in use. I know that
it's not the exact average object size as there are more things stored, but
at least for our cache contents seems to be a valuable metric, we are in
the range 15-20k.

But in the current version I'm not sure how to replicate this graph.


Jorge Nerín
<jnerin at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130303/d083e8e5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: varnish_.in.patch
Type: application/octet-stream
Size: 2114 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130303/d083e8e5/attachment.obj>

More information about the varnish-misc mailing list