Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
/ collectd-bcache Public archive
forked from pommi/collectd-bcache

Collect bcache statistics using the Collectd Python plugin

Notifications You must be signed in to change notification settings

bzed/collectd-bcache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

collectd-bcache

This collectd python module collects bcache SSD caching statistics.

Usage

Collectd

<LoadPlugin python>
    Globals true
</LoadPlugin>

<Plugin python>
    # bcache.py is at /opt/collectd-plugins/python
    ModulePath "/opt/collectd-plugins/python"

    Import "bcache"
</Plugin>

Command-line (for testing)

# ./bcache.py
DEBUG: bcache-bcache0/bytes-dirty_data = 5261334937
DEBUG: bcache-bcache0/cache_ratio-five_minute = 92.0251997541
DEBUG: bcache-bcache0/cache_ratio-hour = 96.1182476602
DEBUG: bcache-bcache0/cache_ratio-day = 87.6099980315
DEBUG: bcache-bcache0/cache_ratio-total = 82.9416755058
DEBUG: bcache-bcache0/requests-bypass_hits = 2745
DEBUG: bcache-bcache0/requests-bypass_misses = 0
DEBUG: bcache-bcache0/requests-hits = 5989
DEBUG: bcache-bcache0/requests-miss_collisions = 0
DEBUG: bcache-bcache0/requests-misses = 519
DEBUG: bcache-bcache0/requests-readaheads = 0
DEBUG: bcache-bcache0/bytes-bypassed = 360710144

About

Collect bcache statistics using the Collectd Python plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%