Sha256: 92679f3a777f4c0ee10c73cc2d2a299e351fab5a82e407b34aa3641371ca1b0f

Contents?: true

Size: 1.95 KB

Versions: 1

Compression:

Stored size: 1.95 KB

Contents

## Sensu-Plugins-cgroups

[ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-cgroups.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-cgroups)
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-cgroups.svg)](http://badge.fury.io/rb/sensu-plugins-cgroups)
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-cgroups/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-cgroups)
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-cgroups/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-cgroups)
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-cgroups.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-cgroups)

## 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](http://sensu-plugins.io/docs/installation_instructions.html)

## Notes

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sensu-plugins-cgroups-1.1.0 README.md