varnish-metric plugin is not formatting correctly its output in Graphite

Hi guys.
Recently I’ve installed varnish-metric.rb plugin from https://github.com/sensu/sensu-community-plugins/blob/master/plugins/varnish/varnish-metrics.rb.

But, I’m seeing wrong format index in graphite. As you can see in the attached screenshot, there are three folders (LCK, SMA and VBE) and a lot of other metrics (these folders and items should be inside a folder called “varnish”).

Here’s the output I get when I run the plugin manually:

varnishX-domain.varnish.SMA.Transient.c_bytes

varnishX-domain.varnish.LCK.vbe.locks

varnishX-domain.varnish.VBE.vm.happy

varnishX-domain.varnish.n_gzip

varnishX-domain.varnish.n_gunzip

.

As you can see above, the first three records have the folders (SMA, LCK and VBE). The last two don’t. But, if I’m not wrong, there’s also a “varnish” folder between the name of the server and the mentioned folders’ name. Shouldn’t this “varnish” folder be shown in Graphite too?

Thanks!!