sensu-plugins-load-checks 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +111 -17
- data/lib/sensu-plugins-load-checks/version.rb +1 -1
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90cd3cee562286625216c63d6efd3142594f0638bc6075c842c14356e06e2326
|
4
|
+
data.tar.gz: d48cc89a0c6614ed09affdc11992529eaaa0b074031c4872a490cc1b48f87a16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 554ebce54188cff5101e541cfbbf04d55ec1bfa468c1290adcf56df0d0512aa0ee76937862d093b11227757f17e2b5f09e31f7ab00929b53da96715a9aeba67b
|
7
|
+
data.tar.gz: 9e9e88f69b680a4a508618871ac280d900c9ffe2e353d3edaf70bb73ae40d290f85a1470162a4101ca3fe355fa4930fae9814baa4d84de25014f887f6d953695
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [5.1.0] - 2019-12-12
|
9
|
+
### Added
|
10
|
+
- Updated asset build targets to support centos6
|
11
|
+
|
8
12
|
## [5.0.0] - 2019-04-18
|
9
13
|
### Breaking Changes
|
10
14
|
- Update minimum required ruby version to 2.3. Drop unsupported ruby versions.
|
@@ -95,7 +99,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
95
99
|
### Added
|
96
100
|
- initial release
|
97
101
|
|
98
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-load-checks/compare/5.
|
102
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-load-checks/compare/5.1.0...HEAD
|
103
|
+
[5.1.0]: https://github.com/sensu-plugins/sensu-plugins-load-checks/compare/5.0.0...5.1.0
|
99
104
|
[5.0.0]: https://github.com/sensu-plugins/sensu-plugins-load-checks/compare/4.0.2...5.0.0
|
100
105
|
[4.0.2]: https://github.com/sensu-plugins/sensu-plugins-load-checks/compare/4.0.1...4.0.2
|
101
106
|
[4.0.1]: https://github.com/sensu-plugins/sensu-plugins-load-checks/compare/4.0.0...4.0.1
|
data/README.md
CHANGED
@@ -1,38 +1,132 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-load-checks)
|
3
2
|
[ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-load-checks.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-load-checks)
|
4
3
|
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-load-checks.svg)](http://badge.fury.io/rb/sensu-plugins-load-checks)
|
5
4
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-load-checks/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-load-checks)
|
6
5
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-load-checks/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-load-checks)
|
7
6
|
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-load-checks.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-load-checks)
|
8
|
-
[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-load-checks)
|
9
7
|
|
10
|
-
## Sensu
|
11
|
-
|
8
|
+
## Sensu Plugins Load Checks Plugin
|
9
|
+
|
10
|
+
- [Overview](#overview)
|
11
|
+
- [Files](#files)
|
12
|
+
- [Usage examples](#usage-examples)
|
13
|
+
- [Configuration](#configuration)
|
14
|
+
- [Sensu Go](#sensu-go)
|
15
|
+
- [Asset registration](#asset-registration)
|
16
|
+
- [Asset definition](#asset-definition)
|
17
|
+
- [Check definition](#check-definition)
|
18
|
+
- [Sensu Core](#sensu-core)
|
19
|
+
- [Check definition](#check-definition)
|
20
|
+
- [Installation from source](#installation-from-source)
|
21
|
+
- [Additional notes](#additional-notes)
|
22
|
+
- [Contributing](#contributing)
|
12
23
|
|
13
|
-
|
24
|
+
### Overview
|
14
25
|
|
15
|
-
|
26
|
+
This plugin provides native load instrumentation for monitoring and metrics collection, including load health and total or per-core metrics.
|
27
|
+
|
28
|
+
### Files
|
16
29
|
* bin/check-load.rb
|
17
30
|
* bin/metrics-load.rb
|
31
|
+
|
32
|
+
**check-load**
|
33
|
+
Takes the `loadavg` and divides by the number of cores.
|
34
|
+
|
35
|
+
**metrics-load**
|
36
|
+
Uses uptime to collect load metrics. The number of CPUs is determined by reading `/proc/cpuinfo`, which makes the feature Linux-specific.
|
18
37
|
|
19
|
-
## Usage
|
38
|
+
## Usage examples
|
20
39
|
|
21
|
-
###
|
40
|
+
### Help
|
22
41
|
|
23
|
-
|
42
|
+
**check-load.rb**
|
24
43
|
```
|
25
|
-
|
26
|
-
Usage: ./bin/check-load.rb (options)
|
44
|
+
Usage: check-load.rb (options)
|
27
45
|
-c, --crit L1,L5,L15 Load CRITICAL threshold, 1/5/15 min average
|
28
|
-
-w, --warn L1,L5,L15 Load WARNING threshold, 1/5/15 min average
|
46
|
+
-w, --warn L1,L5,L15 Load WARNING threshold, 1/5/15 min average
|
47
|
+
```
|
48
|
+
|
49
|
+
**metrics-load.rb**
|
50
|
+
```
|
51
|
+
Usage: metrics-load.rb (options)
|
52
|
+
--scheme SCHEME Metric naming scheme, text to prepend to .$parent.$child
|
29
53
|
```
|
30
54
|
|
31
|
-
|
55
|
+
## Configuration
|
56
|
+
### Sensu Go
|
57
|
+
#### Asset registration
|
58
|
+
|
59
|
+
Assets are the best way to make use of this plugin. If you're not using an asset, please consider doing so! If you're using sensuctl 5.13 or later, you can use the following command to add the asset:
|
60
|
+
|
61
|
+
`sensuctl asset add sensu-plugins/sensu-plugins-load-checks`
|
62
|
+
|
63
|
+
If you're using an earlier version of sensuctl, you can download the asset definition from [this project's Bonsai asset index page](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-load-checks).
|
64
|
+
|
65
|
+
#### Asset definition
|
66
|
+
|
67
|
+
```yaml
|
68
|
+
---
|
69
|
+
type: Asset
|
70
|
+
api_version: core/v2
|
71
|
+
metadata:
|
72
|
+
name: sensu-plugins-load-checks
|
73
|
+
spec:
|
74
|
+
url: https://assets.bonsai.sensu.io/1accacdd780175a02183e722effa0986e6472f21/sensu-plugins-load-checks_5.0.0_centos_linux_amd64.tar.gz
|
75
|
+
sha512: 0e97bc162d6f9529ef044d0173f97330c597d31cf3389539baed6d17c713a8961e8d7e0f62b2f195eae6da66dc65ddfbff59379f0c846596b29fb6977b4e368b
|
76
|
+
```
|
77
|
+
|
78
|
+
#### Check definition
|
79
|
+
|
80
|
+
```yaml
|
81
|
+
---
|
82
|
+
type: CheckConfig
|
83
|
+
spec:
|
84
|
+
command: "check-load.rb"
|
85
|
+
handlers: []
|
86
|
+
high_flap_threshold: 0
|
87
|
+
interval: 10
|
88
|
+
low_flap_threshold: 0
|
89
|
+
publish: true
|
90
|
+
runtime_assets:
|
91
|
+
- sensu-plugins/sensu-plugins-load-checks
|
92
|
+
- sensu/sensu-ruby-runtime
|
93
|
+
subscriptions:
|
94
|
+
- linux
|
95
|
+
```
|
96
|
+
|
97
|
+
### Sensu Core
|
98
|
+
|
99
|
+
#### Check definition
|
100
|
+
```json
|
101
|
+
{
|
102
|
+
"checks": {
|
103
|
+
"check-load": {
|
104
|
+
"command": "check-load.rb",
|
105
|
+
"subscribers": ["linux"],
|
106
|
+
"interval": 10,
|
107
|
+
"refresh": 10,
|
108
|
+
"handlers": ["influxdb"]
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
```
|
113
|
+
|
114
|
+
## Installation from source
|
115
|
+
|
116
|
+
### Sensu Go
|
117
|
+
|
118
|
+
See the instructions above for [asset registration](#asset-registration).
|
119
|
+
|
120
|
+
### Sensu Core
|
121
|
+
|
122
|
+
Install and setup plugins on [Sensu Core](https://docs.sensu.io/sensu-core/latest/installation/installing-plugins/).
|
123
|
+
|
124
|
+
## Additional notes
|
32
125
|
|
126
|
+
### Sensu Go Ruby Runtime Assets
|
33
127
|
|
34
|
-
|
128
|
+
The Sensu assets packaged from this repository are built against the Sensu Ruby runtime environment. When using these assets as part of a Sensu Go resource (check, mutator, or handler), make sure to include the corresponding [Sensu Ruby Runtime Asset](https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime) in the list of assets needed by the resource.
|
35
129
|
|
36
|
-
|
130
|
+
## Contributing
|
37
131
|
|
38
|
-
|
132
|
+
See [CONTRIBUTING.md](https://github.com/sensu-plugins/sensu-plugins-load-checks/blob/master/CONTRIBUTING.md) for information about contributing to this plugin.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-load-checks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -98,22 +98,22 @@ dependencies:
|
|
98
98
|
name: mixlib-shellout
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '2.2'
|
104
101
|
- - "<"
|
105
102
|
- !ruby/object:Gem::Version
|
106
103
|
version: 2.3.0
|
104
|
+
- - "~>"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '2.2'
|
107
107
|
type: :development
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - "~>"
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
version: '2.2'
|
114
111
|
- - "<"
|
115
112
|
- !ruby/object:Gem::Version
|
116
113
|
version: 2.3.0
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '2.2'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: pry
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -232,8 +232,8 @@ description: |-
|
|
232
232
|
load health, and total or per core metrics
|
233
233
|
email: "<sensu-users@googlegroups.com>"
|
234
234
|
executables:
|
235
|
-
- check-load.rb
|
236
235
|
- metrics-load.rb
|
236
|
+
- check-load.rb
|
237
237
|
extensions: []
|
238
238
|
extra_rdoc_files: []
|
239
239
|
files:
|
@@ -270,7 +270,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
270
|
- !ruby/object:Gem::Version
|
271
271
|
version: '0'
|
272
272
|
requirements: []
|
273
|
-
|
273
|
+
rubyforge_project:
|
274
|
+
rubygems_version: 2.7.7
|
274
275
|
signing_key:
|
275
276
|
specification_version: 4
|
276
277
|
summary: Sensu plugins for load checks
|