sumo-check-es 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sumo-metric-es_thread_pool.rb +1 -3
- 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: 309683bd593efa660aaf3930a30d6b403375dd89
|
4
|
+
data.tar.gz: 1cbe7368aabb100e82821913aa403c923b190636
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25b283cd756f57e80202ce61eb036d77734ed267939187435eee430bc1108ce8e44c808c7d621317ab4f6a2589117921d6d5ab5e2d29a873291e859cf9e0a358
|
7
|
+
data.tar.gz: b6f79840fe33d5829650463593590c17cfea61d6fafd21a7f1164a4abae0e760164d6bf721ec6d207721489690ba5e345300e78006cad068a00ec66adbf7782e
|
@@ -1,7 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'rest-client'
|
3
3
|
require 'sensu-plugin/metric/cli'
|
4
|
-
require 'uri'
|
5
4
|
require 'json'
|
6
5
|
|
7
6
|
class SensuMetricEsSubscriberRate < Sensu::Plugin::Metric::CLI::Graphite
|
@@ -14,8 +13,7 @@ class SensuMetricEsSubscriberRate < Sensu::Plugin::Metric::CLI::Graphite
|
|
14
13
|
|
15
14
|
def run
|
16
15
|
return_data = []
|
17
|
-
|
18
|
-
response=RestClient.get "http://localhost:9200/_cat/thread_pool", {params: {format: 'json', 'pretty' => true}}
|
16
|
+
response=RestClient.get "http://#{config[:server].strip}/_cat/thread_pool", {params: {format: 'json', 'pretty' => true}}
|
19
17
|
if response.code == 200
|
20
18
|
data = JSON.parse(response.body)
|
21
19
|
data.each do |i|
|