Various storage related diamond collectors for graphite.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
flashcache
lvm
.gitignore
README.md

README.md

Diamond-StorageCollectors

Note: Directory structure has been updated to match the new version of diamond collector

Various storage related diamond collectors for graphite.

## LvmCollector

Collects Lvm metrics in three set (pv, vg, lv). The format is .lvm.pv.[device].[metric]. For example:

.lvm.pv._dev_hdc.pv_size is the size of the /dev/hdc Phisical Volume

### Installation

  1. Move the lvm directory to your collectors directory which should exist on /usr/local/share/diamond/collectors or /usr/share/diamond/collectors path depending on your installation.

  2. Setup the LvmCollector.conf in your diamond collectors config directory (/etc/diamond/collectors)

     $ cat /etc/diamond/collectors/LvmCollector.conf
     enabled = True
     interval = 60
    

Configuration

Default config for the collector:

{
	'path': 'lvm',
	# Leave unset to publish all
	#name parameters are essentail don't remove them
	'publish': {
		'pv': ('pv_name', 'pv_uuid', 'pe_start', 'pv_size', 'pv_free', 'pv_used', 'pv_pe_count', 'pv_pe_alloc_count'),
		'vg': ('vg_fmt', 'vg_uuid', 'vg_name', 'vg_size', 'vg_free', 'vg_extent_size', 'vg_extent_count', 'vg_free_count', 'max_lv', 'max_pv', 'pv_count', 'lv_count', 'snap_count', 'vg_seqno'),
		'lv': ('vg_name', 'lv_uuid', 'lv_name', 'lv_major', 'lv_minor', 'lv_kernel_major', 'lv_kernel_minor', 'lv_kernel_read_ahead', 'lv_size', 'seg_count', 'origin_size', 'snap_percent'),
	},
	'identifiers': {
		'pv': ('pv_name',),
		'vg': ('vg_name',),
		'lv': ('vg_name', 'lv_name'),
	},
	'commands': {
		'pv': 'pvs',
		'vg': 'vgs',
		'lv': 'lvs',
	}
}

FlashcacheCollector


This creates metric in the format of:

flashcache.<cache_name>.[metric]

### Installation

  1. Move the flashcache directory to your collectors directory which should exist on /usr/local/share/diamond/collectors or /usr/share/diamond/collectors path depending on your installation.

### Configuration

Default config for the collector:

{
	'path': 'flashcache',
}

You can find me on Twitter, My Blog or LinkedIn