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
- Host: GitHub
- URL: https://github.com/alxrem/collectd-flashcache-py
- Owner: alxrem
- License: gpl-3.0
- Created: 2015-11-15T20:50:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T11:40:00.000Z (over 10 years ago)
- Last Synced: 2026-01-06T00:55:04.568Z (5 months ago)
- Topics: collectd, collectd-plugin, flashcache, python
- Language: Python
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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