This plugin supports collecting metrics from a ScaleIO cluster
It's used in the Snap framework.
- golang 1.5+ (needed only for building)
You can get the pre-built binaries for your OS and architecture at the GitHub Releases page of this repository.
Fork https://github.com/intelsdi-x/snap-plugin-collector-scaleio
Clone repo into $GOPATH/src/github.com/intelsdi-x/
:
$ git clone https://github.com/<yourGithubID>/snap-plugin-collector-scaleio.git
Build the plugin by running make within the cloned repo:
$ make
This builds the plugin in ./build/rootfs/
First, be sure that you've familiarized yourself with the Snap framework by reading the Getting Started documentation.
This plugin requires several config options to run properly:
Required
gateway
: This is the URL of the gateway server.username
andpassword
: A username and password with the appropriate access to the REST API
Optional
verifySSL
: If set tofalse
this disables SSL validation. This should not be used in production.
A full config example is below:
"/intel/scaleio": {
"username": "admin",
"password": "password",
"gateway": "https://my-cluster",
"verifySSL": false
}
Currently, all metrics are exposed with a dynamic namespace that encompasses each StoragePool. This means that it will collect the data for all storage pools. There is an upcoming Snap feature that will allow you to specify a specific storage pool and the documentation will be updated when that feature lands.
There are over 100 metrics exposed for each StoragePool. To prevent you from tiring your finger by scrolling too much, load the plugin into Snap and list the metrics as shown below:
snapctl plugin load snap-plugin-collector-scaleio
snapctl metric list
There is an example config found in the [examples directory](examples/file-collect.json]
Example watch
NAMESPACE DATA TIMESTAMP
/intel/scaleio/96eb24f700000000/bckRebuildWriteBwc/numOccured 0 2016-07-08 23:16:02.304238351 -0700 PDT
/intel/scaleio/96eb24f700000000/pendingMovingOutBckRebuildJobs 0 2016-07-08 23:16:02.304238351 -0700 PDT
/intel/scaleio/96eb24f700000000/snapCapacityInUseInKb 3.145728e+06 2016-07-08 23:16:02.304238351 -0700 PDT
This is currently in Alpha. Please let us know of any bugs you see.
If you have a feature request, please add it as an issue and/or submit a pull request.
This repository is one of many plugins in snap, a powerful telemetry framework. See the full project at http://github.com/intelsdi-x/snap To reach out to other users, head to the main framework or join the Snap Slack channel.
We love contributions!
There's more than one way to give back, from examples to blogs to code updates. See our recommended process in CONTRIBUTING.md.
Snap, along with this plugin, is an Open Source software released under the Apache 2.0 License.
- Author: Taylor Thomas
And thank you! Your contribution, through code and participation, is incredibly important to us.