Skip to content

Collect lvmcache / dm-cache statistics using the Collectd Exec plugin

Notifications You must be signed in to change notification settings

pommi/collectd-lvmcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

collectd-lvmcache

This script collects lvmcache / dm-cache SSD caching statistics and outputs it to STDOUT in a Collectd Exec plugin compatible format.

Usage

Collectd

<Plugin exec>
    Exec "user:group" "/path/to/collectd-lvmcache"
</Plugin>

Command-line (for testing)

$ ./collectd-lvmcache
PUTVAL "hostname.tld/lvmcache-lv0/df_complex-dirty" interval=1 N:0
PUTVAL "hostname.tld/lvmcache-lv0/df_complex-metadata_used" interval=1 N:9199616
PUTVAL "hostname.tld/lvmcache-lv0/df_complex-metadata_free" interval=1 N:1064542208
PUTVAL "hostname.tld/lvmcache-lv0/df_complex-cache_used" interval=1 N:663814144
PUTVAL "hostname.tld/lvmcache-lv0/df_complex-cache_free" interval=1 N:36917149696
PUTVAL "hostname.tld/lvmcache-lv0/cache_result-read_hits" interval=1 N:81565
PUTVAL "hostname.tld/lvmcache-lv0/cache_result-read_misses" interval=1 N:166286
PUTVAL "hostname.tld/lvmcache-lv0/cache_result-write_hits" interval=1 N:3422930
PUTVAL "hostname.tld/lvmcache-lv0/cache_result-write_misses" interval=1 N:294842
PUTVAL "hostname.tld/lvmcache-lv0/cache_result-demotions" interval=1 N:0
PUTVAL "hostname.tld/lvmcache-lv0/cache_result-promotions" interval=1 N:1806

About

Collect lvmcache / dm-cache statistics using the Collectd Exec plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages