sensu-plugins-graphite 3.0.0 → 3.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 +13 -2
- data/bin/handler-graphite-event.rb +9 -1
- data/lib/sensu-plugins-graphite/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 204bf1861612ef4888bbdefed76fe002ea60b9a1e504074197a9fec3681dea07
|
4
|
+
data.tar.gz: 3bbea4447ff75a5f688dc854552a3fb421dcb9a175d370aa53363cad69301a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8210880e6ef126f5636ec836b6f61f4e9aeef7992c49ed3547e5646c72a0b23f4ff764dff694743aea9ad6cf60d8136693049794079556b43f5115549d42a3ee
|
7
|
+
data.tar.gz: 3cffb6e9a187114891b99a3ee3ae09c865da2107069dbd5261b6752712c01b229b9164d586acca91c57382631d30abb18357f1806ffc3dfd755899d559ef7e75
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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.
|
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
|
}
|
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.
|
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:
|
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.
|
271
|
+
rubygems_version: 2.7.6
|
272
272
|
signing_key:
|
273
273
|
specification_version: 4
|
274
274
|
summary: Sensu plugins for graphite
|