An open API service indexing awesome lists of open source software.

https://github.com/alxrem/collectd-flashcache-py

CollectD plugin to gather statistics about flashcache devices
https://github.com/alxrem/collectd-flashcache-py

collectd collectd-plugin flashcache python

Last synced: 3 months ago
JSON representation

CollectD plugin to gather statistics about flashcache devices

Awesome Lists containing this project

README

          

# flashcache plugin for CollectD

The *flashcache plugin* collects statistics about [flashcache][1] devices.
Gather all the metrics in /proc/flashcache in files flashcache_stats,
flashcache_errors for each device.

The *flashcache plugin* is loaded as a python module by plugin
[collectd-python][2].

The plugin was tested on Debian Jessie with collectd-5.4.1 and flashcache-3.1.1

## Parameters

Without parameters the plugin collects statistics about all flashcache devices
found in the system.

### Device _cachedev_

flashcache device for which the statistics are collected. You can specify
multiple parameters. Behavior may be changed by directive *IgnoreSelected*.

### IgnoreSelected _true|false_

If *IgnoreSelected* set to _true_, the devices listed by parameters *Device*
will be excluded from statistics collection. Default value is _false_.

### DMSetup _path/to/dmsetup_

The path to utility dmsetup. Default value is _/sbin/dmsetup_.

## Configuration examples

# Collectd statistics about all devices

Import "collectd_flashcache"

# Collectd statistics about device cachedev1 only

Import "collectd_flashcache"


Device cachedev1

# Collectd statistics about all devices except cachedev2

Import "collectd_flashcache"


Device cachedev2
IgnoreSelected true

[1]: https://github.com/facebook/flashcache/
[2]: https://collectd.org/documentation/manpages/collectd-python.5.shtml