sensu-plugins-eventstore 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/metrics-eventstore-stats-stream.rb +7 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5038efd80b3ac586fefb9c8ba207d5049b00cdf0
|
4
|
+
data.tar.gz: c9b54ddc7a3557cb286de64944a2e27007cd4a61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8a921ba565320f7b848f9dccf16adbcde7343c6844442cd0911352a74b225112387109677436076a3e334ef72d0a97062fa464a8f50253de8adfbec9c33d886
|
7
|
+
data.tar.gz: 637c0bb78e09bc5d7e37b9d0ddb418cd3914cd949f4a13f37e07efd59282105c0a43cd6caa4f3a832db6fbbff08684abd2f73fdf12ac8727497df01d8facc380
|
@@ -53,19 +53,19 @@ class Stats < Sensu::Plugin::Metric::CLI::Graphite
|
|
53
53
|
|
54
54
|
option :use_authentication,
|
55
55
|
description: 'Should use authentication (Default false)',
|
56
|
-
short: '-
|
57
|
-
long: '--
|
56
|
+
short: '-u',
|
57
|
+
long: '--use_authentication use_authentication',
|
58
58
|
default: 'false'
|
59
59
|
|
60
60
|
option :auth_user,
|
61
61
|
description: 'Username for stats stream auth. (Default "admin")',
|
62
|
-
short: '-
|
62
|
+
short: '-r',
|
63
63
|
long: '--auth_user auth_user',
|
64
64
|
default: 'admin'
|
65
65
|
|
66
66
|
option :auth_password,
|
67
67
|
description: 'What port to use. (Default "changeit")',
|
68
|
-
short: '-
|
68
|
+
short: '-w',
|
69
69
|
long: '--auth_password auth_password',
|
70
70
|
default: 'changeit'
|
71
71
|
|
@@ -114,8 +114,11 @@ class Stats < Sensu::Plugin::Metric::CLI::Graphite
|
|
114
114
|
latest_event_url = latest_entry.at_xpath('.//id').content
|
115
115
|
|
116
116
|
element_temp_file = get_stream latest_event_url, "application/json"
|
117
|
+
|
117
118
|
json_stats = JSON.parse element_temp_file.read
|
118
119
|
|
120
|
+
puts "json stats #{json_stats}"
|
121
|
+
|
119
122
|
stats_dict = parse_json_stats json_stats
|
120
123
|
|
121
124
|
stats_dict.each { |stat| output stat[0], stat[1]}
|