This plugin collects metrics from cadvisor which gathers information on running processes and system utilization (CPU, memory, disks, network). It is designed with kubernetes in mind and only collects container metrics on containers with kubernetes labels
It's used in the Snap framework.
- golang 1.9+ (needed only for building)
All OSs currently supported by snap:
- Linux/amd64
- Darwin/amd64
You can get the pre-built binaries for your OS and architecture under the plugin's release page. For Snap, check here.
Fork https://github.com/grafana/snap-plugin-collector-cadvisor
Clone repo into $GOPATH/src/github.com/grafana/
:
$ git clone https://github.com/<yourGithubID>/snap-plugin-collector-cadvisor.git
Build the plugin by running make within the cloned repo:
$ make
This builds the plugin in ./build/
- Set up the Snap framework
Available configuration option:
- interval - this is a streaming plugin that requires a set interval for how often to forward metrics from cadvisors. This is a positive integer
List of metrics collected by this plugin can be found in METRICS.md file.