/snap-plugin-collector-cadvisor

Collects cadvisor metrics. https://github.com/google/cadvisor

Primary LanguageGoApache License 2.0Apache-2.0

Snap collector plugin - cadvisor

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.

Getting Started

System Requirements

Operating systems

All OSs currently supported by snap:

  • Linux/amd64
  • Darwin/amd64

Installation

Download cadvisor plugin binary:

You can get the pre-built binaries for your OS and architecture under the plugin's release page. For Snap, check here.

To build the plugin binary:

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/

Configuration and Usage

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

Collected metrics

List of metrics collected by this plugin can be found in METRICS.md file.