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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b2755c6881b5d17f0b2822ba142c16cc17f66814
4
- data.tar.gz: c83c9e82c43df31971c5563d931d39da5bdb963f
2
+ SHA256:
3
+ metadata.gz: cd067eda574db14305d32867b2eb5a3a7362f5294a7a3d757d98b9d6354b915c
4
+ data.tar.gz: acd53c8148e6d0d0ba2489ea5330fc454459c1466bbdf12627f1c1f6f38b5b7c
5
5
  SHA512:
6
- metadata.gz: 79601be694e72ef79fa0502fce855c934aa1d513f965f6e1bbfb5959a857b97688478d4818d464672672dc31293a00bbf4ed2b3bd86bd5cf95411ce94d6a39cb
7
- data.tar.gz: 7b44ccc30a4a39f27fe52787fde63cfafe8dee901d79c1bb5d0c9678b4f21b2c8530636b3c3b960e253f552c84ac00cd077f0d017ac9bb1b45ff1b0eae4a074e
6
+ metadata.gz: d1dae3c1bee4f993586795aa482daa702cb8dce603ae5d1c1600cde7ef76febb89c1e3440fa93f56805a5c086257938bad7e99109e7d52a804fa3fb8e2a76735
7
+ data.tar.gz: 4335b8b3b00f9334703118a035c929a7837192a244c735c38dae60e44881f3a21edf1ed728ca0a5d0609eb93f475e940bd6954cee7abab704a4fe7d6cb368e41
@@ -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 at [Keep A Changelog](http://keepachangelog.com/)
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.2.0...HEAD
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].split('.', 2)[1]
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')
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsInfluxdb
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 2
4
+ MINOR = 3
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
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.2.0
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: 2017-05-16 00:00:00.000000000 Z
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.4.5
244
+ rubygems_version: 2.7.7
245
245
  signing_key:
246
246
  specification_version: 4
247
247
  summary: Sensu plugins for influxdb