sensu-plugins-graphite 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 132867459cdd9ed13a72e2e48398b52797c01334f5eafd86550f428af75062f4
4
- data.tar.gz: 27a222245ca4ee0861e8d97d9a4839f4ad436adbfad6671b499289eb29b50fd7
3
+ metadata.gz: 204bf1861612ef4888bbdefed76fe002ea60b9a1e504074197a9fec3681dea07
4
+ data.tar.gz: 3bbea4447ff75a5f688dc854552a3fb421dcb9a175d370aa53363cad69301a6f
5
5
  SHA512:
6
- metadata.gz: e6fdcc7dcf9920a7f4eaeb3dac45f1502bcc47508ed311b3d3204ef9b193c7f7402d7c582eb2b8db8819208dfbaa2d87151332fcb45544ea913f886a4d288461
7
- data.tar.gz: 2cb7d92183220bab5f3468bc10565c7eb0ff8dc28b908abe6c08eb72c28cef572b4ae9f0530a1367b13e8b2f9f5bd5af61fc008444adf1b348e738d0453e12fc
6
+ metadata.gz: 8210880e6ef126f5636ec836b6f61f4e9aeef7992c49ed3547e5646c72a0b23f4ff764dff694743aea9ad6cf60d8136693049794079556b43f5115549d42a3ee
7
+ data.tar.gz: 3cffb6e9a187114891b99a3ee3ae09c865da2107069dbd5261b6752712c01b229b9164d586acca91c57382631d30abb18357f1806ffc3dfd755899d559ef7e75
@@ -1,10 +1,20 @@
1
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
7
 
8
+ ## [3.1.0] - 2018-02-28
9
+ ### Added
10
+ - Added -t flag to handler-graphite-event.rb to support post 1.0 versions of graphite which require tags sent as arrays. (@jwatroba)
11
+
12
+ ### Changed
13
+ - updated Changelog guidelines location (@majormoses)
14
+
15
+ ### Fixed
16
+ - minor typos in PR template (@majormoses)
17
+
8
18
  ## [3.0.0] - 2017-12-04
9
19
  ### Breaking Change
10
20
  - bumped dependency of `sensu-plugin` to 2.x you can read about it [here](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29)
@@ -87,7 +97,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
87
97
  ### Added
88
98
  - initial release
89
99
 
90
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-graphite/compare/3.0.0...HEAD
100
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-graphite/compare/3.1.0...HEAD
101
+ [3.1.0]: https://github.com/sensu-plugins/sensu-plugins-graphite/compare/3.0.0...3.1.0
91
102
  [3.0.0]: https://github.com/sensu-plugins/sensu-plugins-graphite/compare/2.2.1...3.0.0
92
103
  [2.3.0]: https://github.com/sensu-plugins/sensu-plugins-graphite/compare/2.2.1...2.3.0
93
104
  [2.2.1]: https://github.com/sensu-plugins/sensu-plugins-graphite/compare/2.2.0...2.2.1
@@ -22,6 +22,14 @@ require 'uri'
22
22
  require 'json'
23
23
 
24
24
  class GraphiteEvent < Sensu::Handler
25
+ option :tags_as_array,
26
+ description: 'send tags as array - for post graphite 1.0 compatibility.',
27
+ short: '-t',
28
+ long: '--tags-as-array',
29
+ boolean: true,
30
+ required: false,
31
+ default: false
32
+
25
33
  def post_event(uri, body)
26
34
  uri = URI.parse(uri)
27
35
  req = Net::HTTP::Post.new(uri.path)
@@ -60,7 +68,7 @@ class GraphiteEvent < Sensu::Handler
60
68
 
61
69
  body = {
62
70
  'what' => 'sensu_event',
63
- 'tags' => tags.join(','),
71
+ 'tags' => config[:tags_as_array] ? [tags.join(',')] : tags.join(','),
64
72
  'data' => event_status,
65
73
  'when' => Time.now.to_i
66
74
  }
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsGraphite
2
2
  module Version
3
3
  MAJOR = 3
4
- MINOR = 0
4
+ MINOR = 1
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-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.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: 2017-12-05 00:00:00.000000000 Z
11
+ date: 2018-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: array_stats
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  version: '0'
269
269
  requirements: []
270
270
  rubyforge_project:
271
- rubygems_version: 2.7.3
271
+ rubygems_version: 2.7.6
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: Sensu plugins for graphite