sensu-plugins-influxdb 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/CHANGELOG.md +24 -7
- data/README.md +6 -2
- data/bin/check-influxdb-query.rb +8 -6
- data/bin/metrics-influxdb.rb +41 -19
- data/bin/mutator-influxdb-line-protocol.rb +55 -0
- data/lib/sensu-plugins-influxdb/version.rb +1 -1
- metadata +43 -65
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YWZlZjM2ZDlkODg5ZjQwMmQ2ZTRiZTJjNWEwNDI1NGM3YmU2OGNiNA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NDgwMDMzZDdkNzA0ZWQzNDY3YzMzMTgxZGNkYTczZWVkMWI0NDUzNA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YWViZjUwMmU0MzYwMDQ1NzhkMGIyM2EzMmE5NTM2NDQzMmE5OTEyZjRjMmNi
|
10
|
+
OGE4MjdlMmUyMWI1Y2Q4NmVjOTc3MWIyMWJiZjJlZjljNDM2OTkyMGE1NTA0
|
11
|
+
NWQ0ODhhNWQ5YWJlMDNlNGZlZmYwMmM2ZDRmZjA4YTJjNTUxYzY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YzBjOGNlMzEyYjBlNjhmZDgxYzUzM2E2N2U2MmUwZWM5ZjIyOTMyYTc5Yzgw
|
14
|
+
YzQ5ZjJhZGUxNTQ5YmNkMDhiNDJmYmZmZWNjNjU0MzNiY2VmNDkyNjIzMDU5
|
15
|
+
MTY0MmJlMTQ2NDU4Zjg4MTA3ZWZiMDUzNTRjNWUyMjdkZGM1YmI=
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,18 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
3
3
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
|
-
## Unreleased
|
6
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
### [0.0.7] - 2016-04-26
|
9
|
+
- Line protocol mutator extension
|
10
|
+
- added tags support for metrics-influxdb.rb
|
11
|
+
- Fixed option tag in check-influxdb-query
|
12
|
+
- added support for storing check status for metrics-influxdb.rb
|
13
|
+
- metrics-influxdb.rb will now create the database if needed
|
14
|
+
- metrics-influxdb.rb can now be configured to use a specific settings block
|
15
|
+
|
16
|
+
### [0.0.6] - 2016-04-18
|
17
|
+
- supress warning if only checking for an existing return value in check-influxdb-query.
|
7
18
|
|
8
19
|
### [0.0.5] - 2015-10-19
|
9
20
|
- added support for https in check-influxdb.
|
@@ -22,15 +33,21 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
22
33
|
### Changed
|
23
34
|
- updated sensu-plugin gem to 1.2.0
|
24
35
|
|
25
|
-
## 0.0.1 - 2015-04-29
|
26
|
-
|
27
|
-
### Added
|
28
|
-
- initial release
|
29
|
-
|
30
36
|
## [0.0.2] - 2015-06-03
|
31
|
-
|
32
37
|
### Fixed
|
33
38
|
- added binstubs
|
34
39
|
|
35
40
|
### Changed
|
36
41
|
- removed cruft from /lib
|
42
|
+
|
43
|
+
## 0.0.1 - 2015-04-29
|
44
|
+
### Added
|
45
|
+
- initial release
|
46
|
+
|
47
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/0.0.7...HEAD
|
48
|
+
[0.0.7]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/0.0.6...0.0.7
|
49
|
+
[0.0.6]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/0.0.5...0.0.6
|
50
|
+
[0.0.5]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/0.0.4...0.0.5
|
51
|
+
[0.0.4]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/0.0.3...0.0.4
|
52
|
+
[0.0.3]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/0.0.2...0.0.3
|
53
|
+
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-influxdb/compare/0.0.1...0.0.2
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-influxdb/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-influxdb)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-influxdb/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-influxdb)
|
7
7
|
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-influxdb.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-influxdb)
|
8
|
-
|
8
|
+
|
9
9
|
## Functionality
|
10
10
|
|
11
11
|
## Files
|
@@ -37,10 +37,14 @@
|
|
37
37
|
"read_timeout" : 300,
|
38
38
|
"retry" : null,
|
39
39
|
"prefix" : "",
|
40
|
-
"denormalize" : true
|
40
|
+
"denormalize" : true,
|
41
|
+
"status" : true
|
41
42
|
}
|
42
43
|
}
|
43
44
|
```
|
45
|
+
To ship additional tags to your metrics via metrics-influxdb.rb (only available in influxdb >= 0.9), just add a tags block inside your check.
|
46
|
+
|
47
|
+
Setting "status" to true will store the metric using the status as the value and the check name as the series
|
44
48
|
|
45
49
|
## Installation
|
46
50
|
|
data/bin/check-influxdb-query.rb
CHANGED
@@ -70,7 +70,7 @@ class CheckInfluxdbQuery < Sensu::Plugin::Check::CLI
|
|
70
70
|
|
71
71
|
option :ssl_ca_cert,
|
72
72
|
description: 'Path to the ssl ca certificate to connect to the InfluxDB server',
|
73
|
-
short: '-
|
73
|
+
short: '-C CA_CERT',
|
74
74
|
long: '--ssl_ca_cert CA_CERT'
|
75
75
|
|
76
76
|
option :database,
|
@@ -157,14 +157,16 @@ class CheckInfluxdbQuery < Sensu::Plugin::Check::CLI
|
|
157
157
|
|
158
158
|
value = influxdb.query config[:query]
|
159
159
|
|
160
|
-
if config[:alias]
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
160
|
+
query_name = if config[:alias]
|
161
|
+
config[:alias]
|
162
|
+
else
|
163
|
+
config[:query]
|
164
|
+
end
|
165
165
|
|
166
166
|
if config[:noresult] && value.empty?
|
167
167
|
critical "No result for query '#{query_name}'"
|
168
|
+
elsif config[:noresult] && !config[:jsonpath] && !value.empty?
|
169
|
+
ok "Value returned for query '#{query_name}'"
|
168
170
|
end
|
169
171
|
|
170
172
|
if config[:jsonpath]
|
data/bin/metrics-influxdb.rb
CHANGED
@@ -33,37 +33,59 @@ require 'influxdb'
|
|
33
33
|
# Sensu To Influxdb
|
34
34
|
#
|
35
35
|
class SensuToInfluxDB < Sensu::Handler
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
end
|
42
|
-
|
43
|
-
database = opts[:database]
|
36
|
+
option :config,
|
37
|
+
description: 'Configuration information to use',
|
38
|
+
short: '-c CONFIG',
|
39
|
+
long: '--config CONFIG',
|
40
|
+
default: 'influxdb'
|
44
41
|
|
45
|
-
|
46
|
-
|
47
|
-
client_name = @event['client']['name']
|
48
|
-
metric_name = @event['check']['name']
|
42
|
+
def filter; end
|
49
43
|
|
50
|
-
|
44
|
+
def create_point(series, value, time)
|
45
|
+
point = { series: series,
|
46
|
+
tags: { host: @event['client']['name'], metric: @event['check']['name'] },
|
47
|
+
values: { value: value },
|
48
|
+
timestamp: time
|
49
|
+
}
|
50
|
+
point[:tags].merge!(@event['check']['tags']) unless @event['check']['tags'].nil?
|
51
|
+
point
|
52
|
+
end
|
51
53
|
|
54
|
+
def parse_output
|
52
55
|
data = []
|
56
|
+
metric_raw = @event['check']['output']
|
53
57
|
metric_raw.split("\n").each do |metric|
|
54
58
|
m = metric.split
|
55
59
|
next unless m.count == 3
|
56
60
|
key = m[0].split('.', 2)[1]
|
57
|
-
key.
|
61
|
+
key.tr!('.', '_')
|
58
62
|
value = m[1].to_f
|
59
63
|
time = m[2]
|
60
|
-
point =
|
61
|
-
tags: { host: client_name, metric: metric_name },
|
62
|
-
values: { value: value },
|
63
|
-
timestamp: time
|
64
|
-
}
|
64
|
+
point = create_point(key, value, time)
|
65
65
|
data.push(point)
|
66
66
|
end
|
67
|
+
data
|
68
|
+
end
|
69
|
+
|
70
|
+
def check_status
|
71
|
+
data = []
|
72
|
+
data.push(create_point(@event['check']['name'], @event['check']['status'], @event['client']['timestamp']))
|
73
|
+
end
|
74
|
+
|
75
|
+
def handle
|
76
|
+
opts = settings[config[:config]].each_with_object({}) do |(k, v), sym|
|
77
|
+
sym[k.to_sym] = v
|
78
|
+
end
|
79
|
+
database = opts[:database]
|
80
|
+
|
81
|
+
influxdb_data = InfluxDB::Client.new database, opts
|
82
|
+
influxdb_data.create_database(database) # Ensure the database exists
|
83
|
+
|
84
|
+
data = if opts[:status] == false || opts[:status].nil?
|
85
|
+
parse_output
|
86
|
+
else
|
87
|
+
check_status
|
88
|
+
end
|
67
89
|
influxdb_data.write_points(data)
|
68
90
|
end
|
69
91
|
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# mutator-influxdb-line-protocol
|
4
|
+
#
|
5
|
+
# DESCRIPTION:
|
6
|
+
# Mutates check results to conform to InfluxDB's line protocol format
|
7
|
+
#
|
8
|
+
# Place this file in /etc/sensu/extensions and modify your handlers JSON config
|
9
|
+
#
|
10
|
+
# handlers.json
|
11
|
+
# {
|
12
|
+
# "influxdb_udp": {
|
13
|
+
# "type": "udp",
|
14
|
+
# "mutator": "mutator-influxdb-line-protocol",
|
15
|
+
# "socket": {
|
16
|
+
# "host": "mgt-monitor-db1",
|
17
|
+
# "port": 8090
|
18
|
+
# }
|
19
|
+
# }
|
20
|
+
# }
|
21
|
+
|
22
|
+
require 'sensu/extension'
|
23
|
+
|
24
|
+
module Sensu
|
25
|
+
module Extension
|
26
|
+
class InfluxDBLineProtocol < Mutator
|
27
|
+
def name
|
28
|
+
'influxdb_line_protocol'
|
29
|
+
end
|
30
|
+
|
31
|
+
def description
|
32
|
+
"returns check output formatted for InfluxDB's line protocol"
|
33
|
+
end
|
34
|
+
|
35
|
+
def run(event)
|
36
|
+
host = event[:client][:name]
|
37
|
+
metric = event[:check][:name]
|
38
|
+
output = event[:check][:output]
|
39
|
+
|
40
|
+
data = []
|
41
|
+
output.split("\n").each do |result|
|
42
|
+
m = result.split
|
43
|
+
next unless m.count == 3
|
44
|
+
key = m[0].split('.', 2)[1]
|
45
|
+
key.tr!('.', '_')
|
46
|
+
value = m[1].to_f
|
47
|
+
time = m[2].ljust(19, '0')
|
48
|
+
data << "#{key},host=#{host},metric=#{metric} value=#{value} #{time}"
|
49
|
+
end
|
50
|
+
|
51
|
+
yield data.join("\n"), 0
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
metadata
CHANGED
@@ -1,36 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-influxdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQQDDAltYXR0
|
14
|
-
am9uZXMxGDAWBgoJkiaJk/IsZAEZFgh5aWVsZGJvdDETMBEGCgmSJomT8ixkARkW
|
15
|
-
A2NvbTAeFw0xNTAxMjgyMTAyNTFaFw0xNjAxMjgyMTAyNTFaMEMxEjAQBgNVBAMM
|
16
|
-
CW1hdHRqb25lczEYMBYGCgmSJomT8ixkARkWCHlpZWxkYm90MRMwEQYKCZImiZPy
|
17
|
-
LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTSzVYnO
|
18
|
-
CLgyrIyT1mBQakArQyW8xhi6MlDqyzXHJGeERT790U6EgoBVeS4XoK0ptFZNR8Tf
|
19
|
-
zko0w+Nv47TarSCgkPOaxY+mxWnAVR10dOmfeLr7huiMyps+YD56/EF2FqQ3jf/+
|
20
|
-
qohENfKD91qy1ieEy+Fn7Pf74ltbNKUdkb9a9eFXQ0DQ4ip5vik7DzjQkUTj4lca
|
21
|
-
k6ArwnmHX4YDhZoYtrQJ8jVktN0/+NtA40M5qkCYHNe5tUW25b/tKVYuioxG6b2Z
|
22
|
-
oIzaZxRLxf6HVAWpCVRT/F5+/yjigkX4u++eYacfLGleXQzoK7BL65vHGMJygWEE
|
23
|
-
0TKGqFOrl/L0AQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
|
24
|
-
HQ4EFgQUEf6a8Td7MrSZc8ImbLFZAENPbz0wIQYDVR0RBBowGIEWbWF0dGpvbmVz
|
25
|
-
QHlpZWxkYm90LmNvbTAhBgNVHRIEGjAYgRZtYXR0am9uZXNAeWllbGRib3QuY29t
|
26
|
-
MA0GCSqGSIb3DQEBBQUAA4IBAQBbzXAYA3BVGw8DZ0YYoY1VHPNEcH5qPIApmHO8
|
27
|
-
rvSmuUT0yMEi7u00H/5uHRFf4LleGT/+sTdyXKsNPGT9kdRuQEgwi+vf7Zfvd8aX
|
28
|
-
UF/+4VkEYf/8rV8Ere6u2QaWPgApdMV6JjKr1fAwCTd8AuGXNaWItiPPMseSQzLJ
|
29
|
-
JKP4hVvbc1d+oS925B1lcBiqn2aYvElbyNAVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
|
30
|
-
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
31
|
-
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2015-10-20 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-04-27 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: dentaku
|
@@ -38,14 +16,14 @@ dependencies:
|
|
38
16
|
requirements:
|
39
17
|
- - '='
|
40
18
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.2.
|
19
|
+
version: 1.2.6
|
42
20
|
type: :runtime
|
43
21
|
prerelease: false
|
44
22
|
version_requirements: !ruby/object:Gem::Requirement
|
45
23
|
requirements:
|
46
24
|
- - '='
|
47
25
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.2.
|
26
|
+
version: 1.2.6
|
49
27
|
- !ruby/object:Gem::Dependency
|
50
28
|
name: influxdb
|
51
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,164 +44,163 @@ dependencies:
|
|
66
44
|
requirements:
|
67
45
|
- - '='
|
68
46
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.5.
|
47
|
+
version: 0.5.7
|
70
48
|
type: :runtime
|
71
49
|
prerelease: false
|
72
50
|
version_requirements: !ruby/object:Gem::Requirement
|
73
51
|
requirements:
|
74
52
|
- - '='
|
75
53
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.5.
|
54
|
+
version: 0.5.7
|
77
55
|
- !ruby/object:Gem::Dependency
|
78
56
|
name: sensu-plugin
|
79
57
|
requirement: !ruby/object:Gem::Requirement
|
80
58
|
requirements:
|
81
|
-
- -
|
59
|
+
- - ~>
|
82
60
|
- !ruby/object:Gem::Version
|
83
|
-
version: 1.2
|
61
|
+
version: '1.2'
|
84
62
|
type: :runtime
|
85
63
|
prerelease: false
|
86
64
|
version_requirements: !ruby/object:Gem::Requirement
|
87
65
|
requirements:
|
88
|
-
- -
|
66
|
+
- - ~>
|
89
67
|
- !ruby/object:Gem::Version
|
90
|
-
version: 1.2
|
68
|
+
version: '1.2'
|
91
69
|
- !ruby/object:Gem::Dependency
|
92
70
|
name: bundler
|
93
71
|
requirement: !ruby/object:Gem::Requirement
|
94
72
|
requirements:
|
95
|
-
- -
|
73
|
+
- - ~>
|
96
74
|
- !ruby/object:Gem::Version
|
97
75
|
version: '1.7'
|
98
76
|
type: :development
|
99
77
|
prerelease: false
|
100
78
|
version_requirements: !ruby/object:Gem::Requirement
|
101
79
|
requirements:
|
102
|
-
- -
|
80
|
+
- - ~>
|
103
81
|
- !ruby/object:Gem::Version
|
104
82
|
version: '1.7'
|
105
83
|
- !ruby/object:Gem::Dependency
|
106
84
|
name: codeclimate-test-reporter
|
107
85
|
requirement: !ruby/object:Gem::Requirement
|
108
86
|
requirements:
|
109
|
-
- -
|
87
|
+
- - ~>
|
110
88
|
- !ruby/object:Gem::Version
|
111
89
|
version: '0.4'
|
112
90
|
type: :development
|
113
91
|
prerelease: false
|
114
92
|
version_requirements: !ruby/object:Gem::Requirement
|
115
93
|
requirements:
|
116
|
-
- -
|
94
|
+
- - ~>
|
117
95
|
- !ruby/object:Gem::Version
|
118
96
|
version: '0.4'
|
119
97
|
- !ruby/object:Gem::Dependency
|
120
98
|
name: github-markup
|
121
99
|
requirement: !ruby/object:Gem::Requirement
|
122
100
|
requirements:
|
123
|
-
- -
|
101
|
+
- - ~>
|
124
102
|
- !ruby/object:Gem::Version
|
125
103
|
version: '1.3'
|
126
104
|
type: :development
|
127
105
|
prerelease: false
|
128
106
|
version_requirements: !ruby/object:Gem::Requirement
|
129
107
|
requirements:
|
130
|
-
- -
|
108
|
+
- - ~>
|
131
109
|
- !ruby/object:Gem::Version
|
132
110
|
version: '1.3'
|
133
111
|
- !ruby/object:Gem::Dependency
|
134
112
|
name: pry
|
135
113
|
requirement: !ruby/object:Gem::Requirement
|
136
114
|
requirements:
|
137
|
-
- -
|
115
|
+
- - ~>
|
138
116
|
- !ruby/object:Gem::Version
|
139
117
|
version: '0.10'
|
140
118
|
type: :development
|
141
119
|
prerelease: false
|
142
120
|
version_requirements: !ruby/object:Gem::Requirement
|
143
121
|
requirements:
|
144
|
-
- -
|
122
|
+
- - ~>
|
145
123
|
- !ruby/object:Gem::Version
|
146
124
|
version: '0.10'
|
147
125
|
- !ruby/object:Gem::Dependency
|
148
126
|
name: rake
|
149
127
|
requirement: !ruby/object:Gem::Requirement
|
150
128
|
requirements:
|
151
|
-
- -
|
129
|
+
- - ~>
|
152
130
|
- !ruby/object:Gem::Version
|
153
131
|
version: '10.0'
|
154
132
|
type: :development
|
155
133
|
prerelease: false
|
156
134
|
version_requirements: !ruby/object:Gem::Requirement
|
157
135
|
requirements:
|
158
|
-
- -
|
136
|
+
- - ~>
|
159
137
|
- !ruby/object:Gem::Version
|
160
138
|
version: '10.0'
|
161
139
|
- !ruby/object:Gem::Dependency
|
162
140
|
name: redcarpet
|
163
141
|
requirement: !ruby/object:Gem::Requirement
|
164
142
|
requirements:
|
165
|
-
- -
|
143
|
+
- - ~>
|
166
144
|
- !ruby/object:Gem::Version
|
167
145
|
version: '3.2'
|
168
146
|
type: :development
|
169
147
|
prerelease: false
|
170
148
|
version_requirements: !ruby/object:Gem::Requirement
|
171
149
|
requirements:
|
172
|
-
- -
|
150
|
+
- - ~>
|
173
151
|
- !ruby/object:Gem::Version
|
174
152
|
version: '3.2'
|
175
153
|
- !ruby/object:Gem::Dependency
|
176
154
|
name: rspec
|
177
155
|
requirement: !ruby/object:Gem::Requirement
|
178
156
|
requirements:
|
179
|
-
- -
|
157
|
+
- - ~>
|
180
158
|
- !ruby/object:Gem::Version
|
181
159
|
version: '3.1'
|
182
160
|
type: :development
|
183
161
|
prerelease: false
|
184
162
|
version_requirements: !ruby/object:Gem::Requirement
|
185
163
|
requirements:
|
186
|
-
- -
|
164
|
+
- - ~>
|
187
165
|
- !ruby/object:Gem::Version
|
188
166
|
version: '3.1'
|
189
167
|
- !ruby/object:Gem::Dependency
|
190
168
|
name: rubocop
|
191
169
|
requirement: !ruby/object:Gem::Requirement
|
192
170
|
requirements:
|
193
|
-
- -
|
171
|
+
- - ~>
|
194
172
|
- !ruby/object:Gem::Version
|
195
|
-
version: 0.
|
173
|
+
version: '0.37'
|
196
174
|
type: :development
|
197
175
|
prerelease: false
|
198
176
|
version_requirements: !ruby/object:Gem::Requirement
|
199
177
|
requirements:
|
200
|
-
- -
|
178
|
+
- - ~>
|
201
179
|
- !ruby/object:Gem::Version
|
202
|
-
version: 0.
|
180
|
+
version: '0.37'
|
203
181
|
- !ruby/object:Gem::Dependency
|
204
182
|
name: yard
|
205
183
|
requirement: !ruby/object:Gem::Requirement
|
206
184
|
requirements:
|
207
|
-
- -
|
185
|
+
- - ~>
|
208
186
|
- !ruby/object:Gem::Version
|
209
187
|
version: '0.8'
|
210
188
|
type: :development
|
211
189
|
prerelease: false
|
212
190
|
version_requirements: !ruby/object:Gem::Requirement
|
213
191
|
requirements:
|
214
|
-
- -
|
192
|
+
- - ~>
|
215
193
|
- !ruby/object:Gem::Version
|
216
194
|
version: '0.8'
|
217
|
-
description:
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
metrics
|
222
|
-
email: "<sensu-users@googlegroups.com>"
|
195
|
+
description: ! "This plugin provides native InfluxDB instrumentation\n for
|
196
|
+
monitoring and metrics collection, including:\n service
|
197
|
+
health via `/ping`, running queries, and service\n metrics."
|
198
|
+
email: <sensu-users@googlegroups.com>
|
223
199
|
executables:
|
224
|
-
- metrics-influxdb.rb
|
225
|
-
- check-influxdb.rb
|
226
200
|
- check-influxdb-query.rb
|
201
|
+
- check-influxdb.rb
|
202
|
+
- metrics-influxdb.rb
|
203
|
+
- mutator-influxdb-line-protocol.rb
|
227
204
|
extensions: []
|
228
205
|
extra_rdoc_files: []
|
229
206
|
files:
|
@@ -233,13 +210,14 @@ files:
|
|
233
210
|
- bin/check-influxdb-query.rb
|
234
211
|
- bin/check-influxdb.rb
|
235
212
|
- bin/metrics-influxdb.rb
|
213
|
+
- bin/mutator-influxdb-line-protocol.rb
|
236
214
|
- lib/sensu-plugins-influxdb.rb
|
237
215
|
- lib/sensu-plugins-influxdb/version.rb
|
238
216
|
homepage: https://github.com/sensu-plugins/sensu-plugins-influxdb
|
239
217
|
licenses:
|
240
218
|
- MIT
|
241
219
|
metadata:
|
242
|
-
maintainer:
|
220
|
+
maintainer: ! '@mattyjones'
|
243
221
|
development_status: active
|
244
222
|
production_status: unstable - testing recommended
|
245
223
|
release_draft: 'false'
|
@@ -251,17 +229,17 @@ require_paths:
|
|
251
229
|
- lib
|
252
230
|
required_ruby_version: !ruby/object:Gem::Requirement
|
253
231
|
requirements:
|
254
|
-
- -
|
232
|
+
- - ! '>='
|
255
233
|
- !ruby/object:Gem::Version
|
256
234
|
version: 1.9.3
|
257
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
258
236
|
requirements:
|
259
|
-
- -
|
237
|
+
- - ! '>='
|
260
238
|
- !ruby/object:Gem::Version
|
261
239
|
version: '0'
|
262
240
|
requirements: []
|
263
241
|
rubyforge_project:
|
264
|
-
rubygems_version: 2.4.
|
242
|
+
rubygems_version: 2.4.5
|
265
243
|
signing_key:
|
266
244
|
specification_version: 4
|
267
245
|
summary: Sensu plugins for influxdb
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
Binary file
|