We are using ngx.shared.DICT in our configuration to save some variables. I was wondering if there is any way to get some statistics on the ngx.shared.DICT ? We will be interested in:
1. Number of keys saved in a particular DICT
2. Total size used by the DICT
3. Sizes of the biggest element saved in the DICT
4. Some Stats on Purging (number of LRUs etc)
In general, we will be interested in monitoring the health of DICT cache. We can code something in Lua and have some Munin plugin to keep a check on it but we dont know how we can get these stats (or others).
Is there a way already for this?