Added number of allocated/stored objects within each Varnish storage (#10329)
Ernesto J. Perez Garcia committed
Dec 11, 2020 at 11:05 UTC
110d3378273a0a3c26c2b695684c037b927d2a85
2 files changed
+8
collectors/python.d.plugin/varnish/README.md
+1
@@ -40,6 +40,7 @@ For every backend (VBE):
40
For every storage (SMF, SMA, or MSE):
41
42
- Storage Usage in `KiB`
43
+- Storage Allocated Objects
44
45
## Configuration
46
collectors/python.d.plugin/varnish/varnish.chart.py
+7
@@ -158,6 +158,7 @@ def backend_charts_template(name):
158
def storage_charts_template(name):
159
order = [
160
'storage_{0}_usage'.format(name),
161
+ 'storage_{0}_alloc_objs'.format(name)
162
]
163
164
charts = {
@@ -168,6 +169,12 @@ def storage_charts_template(name):
169
['{0}.g_bytes'.format(name), 'allocated', 'absolute', 1, 1 << 10]
170
]
171
},
172
+ order[1]: {
173
+ 'options': [None, 'Storage "{0}" Allocated Objects'.format(name), 'objects', 'storage usage', 'varnish.storage_alloc_objs', 'line'],
174
+ 'lines': [
175
+ ['{0}.g_alloc'.format(name), 'allocated', 'absolute']
176
+ ]
177
+ }
178
}
179
180
return order, charts