riemann-babbler 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,7 @@ module Riemann
33
33
  alias :opts :options
34
34
 
35
35
  def report(event)
36
+ report_with_diff(event) and return if event[:is_diff]
36
37
  event[:tags] = options.riemann.tags unless options.riemann.tags.nil?
37
38
  event[:host] = host
38
39
  log.debug "Report status: #{event.inspect}"
@@ -44,6 +45,7 @@ module Riemann
44
45
  event[:metric] = current_metric - @storage[ event[:service] ] if @storage.has_key? event[:service]
45
46
  @storage[ event[:service] ] = current_metric
46
47
  event[:state] = state(current_metric) unless plugin.states.critical.nil?
48
+ event.delete(:is_diff)
47
49
  report(event)
48
50
  end
49
51
 
@@ -47,9 +47,10 @@ class Riemann::Babbler::Net
47
47
  status = net
48
48
  status.each_key do |service|
49
49
  #next if status[service] == 0
50
- report_with_diff({
50
+ report({
51
51
  :service => service,
52
- :metric => status[service]
52
+ :metric => status[service],
53
+ :is_diff => true
53
54
  })
54
55
  end
55
56
  end
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  module Babbler
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: