[varnish] : added compatibility for varnish-plus (#8940)
pgjavier committed
May 13, 2020 at 15:12 UTC
2ca628f8a83d6cff3aa494157d4bf7180dc37f82
1 file changed
+1
-1
collectors/python.d.plugin/varnish/varnish.chart.py
+1
-1
@@ -175,7 +175,7 @@ def disk_charts_template(name):
175
176
VARNISHSTAT = 'varnishstat'
177
178
-re_version = re.compile(r'varnish-(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)')
178
+re_version = re.compile(r'varnish-(?:plus-)?(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)')
179
180
181
class VarnishVersion: