sensu-plugins-influxdb 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +16 -3
- data/bin/mutator-influxdb-line-protocol.rb +5 -1
- data/lib/sensu-plugins-influxdb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cd067eda574db14305d32867b2eb5a3a7362f5294a7a3d757d98b9d6354b915c
|
4
|
+
data.tar.gz: acd53c8148e6d0d0ba2489ea5330fc454459c1466bbdf12627f1c1f6f38b5b7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1dae3c1bee4f993586795aa482daa702cb8dce603ae5d1c1600cde7ef76febb89c1e3440fa93f56805a5c086257938bad7e99109e7d52a804fa3fb8e2a76735
|
7
|
+
data.tar.gz: 4335b8b3b00f9334703118a035c929a7837192a244c735c38dae60e44881f3a21edf1ed728ca0a5d0609eb93f475e940bd6954cee7abab704a4fe7d6cb368e41
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,21 @@
|
|
1
|
-
#Change Log
|
1
|
+
# Change Log
|
2
2
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
3
3
|
|
4
|
-
This CHANGELOG follows the format listed
|
4
|
+
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
|
+
|
8
|
+
## [1.3.0] - 2018-08-06
|
9
|
+
### Fixed
|
10
|
+
- when hostname contains a `.` such as having a FQDN we rely on taking the remaining string rather than doing a split (@cholletk)
|
11
|
+
- misc typo in PR template (@majormoses)
|
12
|
+
|
13
|
+
### Added
|
14
|
+
- Ruby 2.4.1 testing
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
- updated changelog guidlines location (@majormoses)
|
18
|
+
|
7
19
|
## [1.2.0] - 2017-05-15
|
8
20
|
- Added "mode" into check-influxdb-query check to allow multiple values in a query
|
9
21
|
|
@@ -68,7 +80,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
68
80
|
### Added
|
69
81
|
- initial release
|
70
82
|
|
71
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/1.
|
83
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/1.3.0...HEAD
|
84
|
+
[1.3.0]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/1.2.0...1.3.0
|
72
85
|
[1.2.0]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/1.1.0...1.2.0
|
73
86
|
[1.1.0]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/1.0.0...1.1.0
|
74
87
|
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/0.0.7...1.0.0
|
@@ -42,7 +42,11 @@ module Sensu
|
|
42
42
|
output.split("\n").each do |result|
|
43
43
|
m = result.split
|
44
44
|
next unless m.count == 3
|
45
|
-
key = m[0].
|
45
|
+
key = if m[0].start_with?(host)
|
46
|
+
m[0][(host.length + 1)..-1]
|
47
|
+
else
|
48
|
+
m[0].split('.', 2)[1]
|
49
|
+
end
|
46
50
|
key.tr!('.', '_')
|
47
51
|
value = m[1].to_f
|
48
52
|
time = m[2].ljust(19, '0')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-influxdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.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:
|
11
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dentaku
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
version: '0'
|
242
242
|
requirements: []
|
243
243
|
rubyforge_project:
|
244
|
-
rubygems_version: 2.
|
244
|
+
rubygems_version: 2.7.7
|
245
245
|
signing_key:
|
246
246
|
specification_version: 4
|
247
247
|
summary: Sensu plugins for influxdb
|