sensu-plugins-haproxy 1.1.0 → 1.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4c4b50a4503825cb6fdb4b8901ee5e5cfa76c91
4
- data.tar.gz: 861303a859aab6effdd97d0c9b33f73dd295ea57
3
+ metadata.gz: 2fac8d66e08abbe91447d406563b06888e1c97b8
4
+ data.tar.gz: 7ae7f3a436bc7292db84d5297450e654a19139f3
5
5
  SHA512:
6
- metadata.gz: 25a2e3536955ebc09009987cacaa7fb96d144807c98c9b02d5ef94a7aab51f20a272e4e6993d4c46a6b11cdaa7ec25d4e5f5bd15191dc3c1939f7058209b22f5
7
- data.tar.gz: 739f898956be7f9abeb0bfb6784b688d65fa42f71fe18cc5b42c358311e6fb17298f4f51d35d4f06f57c8a21fd52a7babf0969f946490e7f2aa77b46599726be
6
+ metadata.gz: ccd866fbd7d2a5d71723170e936ef0e6dde9cee435f42015597d07678dfe1887e4c009d76e43063a8c13f27b6ef5ce147e23b9669b39a8133c99c01abaa6fd27
7
+ data.tar.gz: fb1674c2b7025ffcfbd968fca67cc61847bab7dd38641ebaa1a20f548e16b58f57233fa9c145489a6ac6720f5c6e5ea31b3e88ddfd0e1b35aacd48a2fd83966b
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.2.0] - 2017-07-25
10
+ ### Added
11
+ - Ruby 2.4.1 testing
12
+ - Add frontend request rate metrics to `--server-metrics` (@Evesey)
13
+
9
14
  ## [1.1.0] - 2017-01-30
10
15
  ### Added
11
16
  - `check-haproxy.rb`: added fail on missing service flag (@obazoud)
@@ -60,7 +65,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
60
65
  ### Added
61
66
  - initial release
62
67
 
63
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/1.1.0...HEAD
68
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/1.2.0...HEAD
69
+ [1.2.0]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/1.1.0...1.2.0
64
70
  [1.1.0]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/1.0.0...1.1.0
65
71
  [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/0.1.1...1.0.0
66
72
  [0.1.1]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/0.1.0...0.1.1
@@ -83,7 +83,7 @@ class HAProxyMetrics < Sensu::Plugin::Metric::CLI::Graphite
83
83
  default: [] # an empty list means show all backends
84
84
 
85
85
  option :server_metrics,
86
- description: 'Add metrics for backend servers',
86
+ description: 'Gathers additional frontend metrics, i.e. total requests',
87
87
  boolean: true,
88
88
  long: '--server-metrics',
89
89
  default: false
@@ -176,6 +176,9 @@ class HAProxyMetrics < Sensu::Plugin::Metric::CLI::Graphite
176
176
  elsif config[:server_metrics]
177
177
  output "#{config[:scheme]}.#{line[0]}.#{line[1]}.session_total", line[7]
178
178
  output "#{config[:scheme]}.#{line[0]}.#{line[1]}.session_current", line[4]
179
+ output "#{config[:scheme]}.#{line[0]}.#{line[1]}.requests_per_second", line[46]
180
+ output "#{config[:scheme]}.#{line[0]}.#{line[1]}.requests_per_second_max", line[47]
181
+ output "#{config[:scheme]}.#{line[0]}.#{line[1]}.requests_total", line[48]
179
182
  end
180
183
 
181
184
  if line[1] != 'BACKEND' && !line[1].nil?
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsHAProxy
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 1
4
+ MINOR = 2
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-haproxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin