newrelic_haproxy_agent 1.0.0 → 1.0.1

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.
data/README.md CHANGED
@@ -56,4 +56,4 @@ Foreman can be useful if you want to use [Heroku](https://www.heroku.com/) for r
56
56
 
57
57
  ## Support
58
58
 
59
- Please use Github issue for support.
59
+ Please use Github issues for support.
data/Rakefile CHANGED
@@ -96,10 +96,10 @@ task :release => :build do
96
96
  puts "You must be on the master branch to release!"
97
97
  exit!
98
98
  end
99
- sh "git commit --allow-empty -a -m 'Release #{version}'"
100
- sh "git tag v#{version}"
99
+ sh "git commit --allow-empty -a -m 'Release #{name} #{version}'"
100
+ #sh "git tag v#{version}"
101
101
  sh "git push origin master"
102
- sh "git push origin v#{version}"
102
+ #sh "git push origin v#{version}"
103
103
  sh "gem push pkg/#{name}-#{version}.gem"
104
104
  end
105
105
 
@@ -15,7 +15,7 @@ require 'open-uri'
15
15
 
16
16
  module NewRelicHaproxyAgent
17
17
 
18
- VERSION = '1.0.0'
18
+ VERSION = '1.0.1'
19
19
 
20
20
  class Agent < NewRelic::Plugin::Agent::Base
21
21
 
@@ -56,11 +56,10 @@ module NewRelicHaproxyAgent
56
56
  raise("Multiple proxies have the name '#{proxy}'. Please specify the proxy type (ex: BACKEND or FRONTEND) in the plugin's settings.")
57
57
  end
58
58
  found_proxies << row["# pxname"]
59
-
60
- report_metric "Requests", "Requests/Minute", @requests.process(row['stot'].to_i) * 60 if @requests.process(row['stot'].to_i)
61
- report_metric "Errors/Request", "Errors/Minute", @errors_req.process(row['ereq'].to_i) * 60 if @errors_req.process(row['ereq'].to_i)
62
- report_metric "Errors/Connection", "Errors/Minute", @errors_conn.process(row['econ'].to_i) * 60 if @errors_conn.process(row['econ'].to_i)
63
- report_metric "Errors/Response", "Errors/Minute", @errors_resp.process(row['eresp'].to_i) * 60 if @errors_resp.process(row['eresp'].to_i)
59
+ report_metric "Requests", "Requests/Minute", (@requests.process(row['stot'].to_i) || 0) * 60
60
+ report_metric "Errors/Request", "Errors/Minute", (@errors_req.process(row['ereq'].to_i) || 0) * 60
61
+ report_metric "Errors/Connection", "Errors/Minute", (@errors_conn.process(row['econ'].to_i) || 0) * 60
62
+ report_metric "Errors/Response", "Errors/Minute", (@errors_resp.process(row['eresp'].to_i) || 0) * 60
64
63
 
65
64
  report_metric "Bytes/Received", "Bytes/Seconds", @bytes_in.process(row['bin'].to_i)
66
65
  report_metric "Bytes/Sent", "Bytes/Seconds", @bytes_out.process(row['bout'].to_i)
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'newrelic_haproxy_agent'
16
- s.version = '1.0.0'
17
- s.date = '2013-06-30'
16
+ s.version = '1.0.1'
17
+ s.date = '2013-07-13'
18
18
  # s.rubyforge_project = 'newrelic_haproxy_agent'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_haproxy_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-30 00:00:00.000000000 Z
12
+ date: 2013-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: newrelic_plugin