sensu-extensions-system-profile 0.0.2 → 1.0.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 +36 -0
- data/LICENSE +22 -0
- data/README.md +20 -35
- data/lib/sensu/extensions/system-profile.rb +1 -1
- metadata +6 -8
- data/.gitignore +0 -9
- data/Gemfile +0 -4
- data/Rakefile +0 -6
- data/sensu-extensions-system-profile.gemspec +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9df22e17a9a80817c78bbba1a1a179aa125285bc
|
4
|
+
data.tar.gz: 1508b876730ad6b111aab03a111140510a58f758
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a61d454184355b0c1c1423bb09b05d2279710222e6fc47d8b06e455a2a6e7a04fa3c46672752ea81e62e69195426871b56cdbbc428402b683542a5ea93d296d
|
7
|
+
data.tar.gz: c0440effa264f4944cf6f42ea02be006e4a9ab17781dbbe30843167ea5da17772a0a021f04522a9764b32daa7ec3e5bba383afa3c0b56793c8769cc6047f73a8
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
|
+
|
5
|
+
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/).
|
6
|
+
|
7
|
+
## [1.0.0] - 2016-07-27
|
8
|
+
|
9
|
+
### Added
|
10
|
+
|
11
|
+
- Added a LICENSE, CHANGELOG, (from
|
12
|
+
[sensu-extensions/template](https://github.com/sensu-extensions/template)).
|
13
|
+
|
14
|
+
### Changed
|
15
|
+
|
16
|
+
- Updated gemspec and README to better represent a desired Sensu extension
|
17
|
+
repository.
|
18
|
+
|
19
|
+
- The configuration option `prefix_on_start` now uses a proper boolean
|
20
|
+
value type, e.g. `true`, instead of `0` or `1`.
|
21
|
+
|
22
|
+
## [0.0.2] - 2016-07-21
|
23
|
+
|
24
|
+
### Changed
|
25
|
+
|
26
|
+
- Now only attempting to use Sensu settings if set.
|
27
|
+
|
28
|
+
## 0.0.1 - 2016-07-21
|
29
|
+
|
30
|
+
### Added
|
31
|
+
|
32
|
+
- Initial release.
|
33
|
+
|
34
|
+
[Unreleased]: https://github.com/sensu-extensions/sensu-extensions-system-profile/compare/v1.0.0...HEAD
|
35
|
+
[1.0.0]: https://github.com/sensu-extensions/sensu-extensions-system-profile/compare/v0.0.2...v1.0.0
|
36
|
+
[0.0.2]: https://github.com/sensu-extensions/sensu-extensions-system-profile/compare/v0.0.1...v0.0.2
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2016 Sensu-Extensions
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,36 +1,21 @@
|
|
1
|
-
# Sensu::Extensions::
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
##
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
```
|
12
|
-
|
1
|
+
# Sensu::Extensions::SystemProfile
|
2
|
+
|
3
|
+
This check extension collects Linux system metrics. This extension
|
4
|
+
reads and parses `/proc/stat`, `/proc/loadavg`, `/proc/net/dev`, and
|
5
|
+
`/proc/meminfo` to produce the system metrics.
|
6
|
+
|
7
|
+
## Configuration
|
8
|
+
|
9
|
+
`/etc/sensu/conf.d/system_profile.json`:
|
10
|
+
|
11
|
+
``` json
|
12
|
+
{
|
13
|
+
"system_profile": {
|
14
|
+
"interval": 10,
|
15
|
+
"handler": "graphite",
|
16
|
+
"add_client_prefix": true,
|
17
|
+
"path_prefix": "system",
|
18
|
+
"prefix_at_start": true
|
19
|
+
}
|
20
|
+
}
|
13
21
|
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install sensu-extensions-only-check-output
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sensu-extensions-only-check-output.
|
36
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-extensions-system-profile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Sensu-Extensions and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-extension
|
@@ -96,17 +96,15 @@ dependencies:
|
|
96
96
|
version: '0'
|
97
97
|
description: Check extension to collect Linux system metrics
|
98
98
|
email:
|
99
|
-
-
|
99
|
+
- "<sensu-users@googlegroups.com>"
|
100
100
|
executables: []
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
-
-
|
105
|
-
-
|
104
|
+
- CHANGELOG.md
|
105
|
+
- LICENSE
|
106
106
|
- README.md
|
107
|
-
- Rakefile
|
108
107
|
- lib/sensu/extensions/system-profile.rb
|
109
|
-
- sensu-extensions-system-profile.gemspec
|
110
108
|
homepage: https://github.com/sensu-extensions/sensu-extensions-system-profile
|
111
109
|
licenses: []
|
112
110
|
metadata: {}
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
Gem::Specification.new do |spec|
|
4
|
-
spec.name = "sensu-extensions-system-profile"
|
5
|
-
spec.version = "0.0.2"
|
6
|
-
spec.authors = ["Sean Porter"]
|
7
|
-
spec.email = ["portertech@gmail.com"]
|
8
|
-
|
9
|
-
spec.summary = "Check extension to collect Linux system metrics"
|
10
|
-
spec.description = "Check extension to collect Linux system metrics"
|
11
|
-
spec.homepage = "https://github.com/sensu-extensions/sensu-extensions-system-profile"
|
12
|
-
|
13
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
14
|
-
spec.require_paths = ["lib"]
|
15
|
-
|
16
|
-
spec.add_dependency "sensu-extension"
|
17
|
-
|
18
|
-
spec.add_development_dependency "bundler", "~> 1.6"
|
19
|
-
spec.add_development_dependency "rake"
|
20
|
-
spec.add_development_dependency "rspec"
|
21
|
-
spec.add_development_dependency "sensu-logger"
|
22
|
-
spec.add_development_dependency "sensu-settings"
|
23
|
-
end
|