Ruby Shell
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
bin add improved metrics collector Aug 1, 2017
lib
test
.gitignore
.rubocop.yml
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
Gemfile
LICENSE
README.md
Rakefile
sensu-plugins-cgroups.gemspec

README.md

Sensu-Plugins-cgroups

Build Status Gem Version Code Climate Test Coverage Dependency Status

Functionality

Files

  • bin/metrics-cgroup.sh
  • bin/metrics-cgroup.rb

Usage

Collect all cgroup metrics, tested only on CentOS.

metrics-cgroup.rb -g "/sys/fs/cgroup/**/**"

Collect only systemd service metrics

metrics-cgroup.rb -g "/sys/fs/cgroup/**/system.slice/*"

Collect only user.slice only

metrics-cgroup.rb -g "/sys/fs/cgroup/**/user.slice"

Collect only mesos task metrics

metrics-cgroup.rb -g "/sys/fs/cgroup/**/mesos/*"

Collect only docker container metrics (may not be meaningful if you already collect metrics from docker)

metrics-cgroup.rb -g "/sys/fs/cgroup/**/docker/*"

Collect only system.slice, user.slice, docker and mesos and nothing else

metrics-cgroup.rb -g "/sys/fs/cgroup/**/{system.slice,user.slice,docker,mesos}{,/*}"

Instead of collecting breakdown of each docker instance, or mesos task, or systemd service metric; this could let to collect/compare overall docker, mesos, systemd and user recources in total.

metrics-cgroup.rb -g "/sys/fs/cgroup/**/{system.slice,user.slice,docker,mesos}"

Installation

Installation and Setup

Notes