summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorErnesto J. Perez Garcia <ernestojpg@gmail.com>2020-12-11 11:05:32 +0100
committerGitHub <noreply@github.com>2020-12-11 13:05:32 +0300
commit110d3378273a0a3c26c2b695684c037b927d2a85 (patch)
tree15493d95b68163d67d6b127e2fbed01a6af9a39b /collectors
parent1cdf2851623e568d56c38604fe1d8b216380cb77 (diff)
Added number of allocated/stored objects within each Varnish storage (#10329)
Diffstat (limited to 'collectors')
-rw-r--r--collectors/python.d.plugin/varnish/README.md1
-rw-r--r--collectors/python.d.plugin/varnish/varnish.chart.py7
2 files changed, 8 insertions, 0 deletions
diff --git a/collectors/python.d.plugin/varnish/README.md b/collectors/python.d.plugin/varnish/README.md
index a052525cf2..cb29738f55 100644
--- a/collectors/python.d.plugin/varnish/README.md
+++ b/collectors/python.d.plugin/varnish/README.md
@@ -40,6 +40,7 @@ For every backend (VBE):
For every storage (SMF, SMA, or MSE):
- Storage Usage in `KiB`
+- Storage Allocated Objects
## Configuration
diff --git a/collectors/python.d.plugin/varnish/varnish.chart.py b/collectors/python.d.plugin/varnish/varnish.chart.py
index ce7e42c674..732dc34191 100644
--- a/collectors/python.d.plugin/varnish/varnish.chart.py
+++ b/collectors/python.d.plugin/varnish/varnish.chart.py
@@ -158,6 +158,7 @@ def backend_charts_template(name):
def storage_charts_template(name):
order = [
'storage_{0}_usage'.format(name),
+ 'storage_{0}_alloc_objs'.format(name)
]
charts = {
@@ -168,6 +169,12 @@ def storage_charts_template(name):
['{0}.g_bytes'.format(name), 'allocated', 'absolute', 1, 1 << 10]
]
},
+ order[1]: {
+ 'options': [None, 'Storage "{0}" Allocated Objects'.format(name), 'objects', 'storage usage', 'varnish.storage_alloc_objs', 'line'],
+ 'lines': [
+ ['{0}.g_alloc'.format(name), 'allocated', 'absolute']
+ ]
+ }
}
return order, charts