I don't want to monitor each entry in my ipset, but I want to monitor the whole ipset size, because I automatically add new items to it.
Expected behavior
The current metric should be optional (e.g. gather_entries like in mysql). Furthermore, there should be an option to gather the whole set size using the ipset list command.
Actual behavior
Only monitoring the entries via ipset save is possible.
Hi Felix, it makes sense to change the ipset input to gather sizes of sets like you described. Would you like to put together a PR to make the change? Thanks!
Use Case
I don't want to monitor each entry in my ipset, but I want to monitor the whole ipset size, because I automatically add new items to it.
Expected behavior
The current metric should be optional (e.g.
gather_entries
like in mysql). Furthermore, there should be an option to gather the whole set size using theipset list
command.Actual behavior
Only monitoring the entries via
ipset save
is possible.Additional info
Example commands:
→ existing use case, results in metric like
ipset,rule=10.69.152.1,set=myset bytes_total=0i,packets_total=0i 1507615028000000000
→ new use case, results in metric like
ipset_size,set=myset entries=1i,memory_size=552i 1507615028000000000