riemann-elasticsearch 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/riemann-elasticsearch +9 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e09b563a9b759fe2ba680691ae0ad6e4bad3c82
4
- data.tar.gz: 42e321f853dd683ba9147de0370bd5789353bb64
3
+ metadata.gz: e1d5fdcdfeec60e37d99c306b4e1f32d59d0e5fe
4
+ data.tar.gz: 945ba73074b7c6ea7a96122496bcf42e01bea58e
5
5
  SHA512:
6
- metadata.gz: be5aea8ac6ba286b9e4b36ed39accf22f1a0d28b0491cb5aa0c4bc514c0c116411d285a8a264ad18b589f45edbc77d137e8bb2daf33c77999f8964e83dc3c60c
7
- data.tar.gz: d6fb756f0b5098a205c8cdc33fc1921b1b3b73bcb8f58897a803a7884a5f01698bc1ab178b5febe2852efd56715c552579db1241b4306293a3b02802716877d5
6
+ metadata.gz: a0e0f211fe1c36196602931a8da00e2323484be96675e25043656daa6a627227fadf58fd4a43e69775771393ae6516e681bcde453f6000c096c00cdd292a54e9
7
+ data.tar.gz: 0f7a367f4a3657330fc2f2d89074baf9b48539e5cdf5d61ab0c3873479156aeb95bee17a897af3ed8d96c41aaf10b6c78b45dbcaffd5c16be594957c85ca345b
@@ -115,8 +115,15 @@ class Riemann::Tools::Elasticsearch
115
115
  end
116
116
 
117
117
  def tick
118
- tick_indices
119
- tick_search
118
+ begin
119
+ tick_indices
120
+ tick_search
121
+ rescue Exception => e
122
+ report(:host => options[:es_host],
123
+ :service => "elasticsearch error",
124
+ :state => "critical",
125
+ :description => "Elasticsearch cluster error: #{e.message}")
126
+ end
120
127
  uri = URI(health_url)
121
128
  response = safe_get(uri)
122
129
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Sandie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-20 00:00:00.000000000 Z
11
+ date: 2017-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riemann-tools
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project: riemann-elasticsearch
85
- rubygems_version: 2.4.5
85
+ rubygems_version: 2.5.2
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Submits elasticsearch stats to riemann.