added config parameter ignore_loopback and ignore_ram
added small tests
formatted tests
updated exemplary files to show how to declare these parameters
How to test it
a) ignore_loopback and ignore_ram set to false (default)
By default both ignore_loopback and ignore_ram are set to false , so the plugin works exactly as before (collecting metrics from all devices listed in /proc/diskstats) .
Summary of changes:
ignore_loopback
andignore_ram
How to test it
a)
ignore_loopback
andignore_ram
set to false (default) By default bothignore_loopback
andignore_ram
are set to false , so the plugin works exactly as before (collecting metrics from all devices listed in /proc/diskstats) .For exemplary task manifest:
Returned metrics include metrics for loop and ram devices:
a)
ignore_loopback
andignore_ram
set to trueFor exemplary task manifest:
Returned metrics do NOT include metrics for loop and ram devices: