sensu-plugins-haproxy 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/bin/metrics-haproxy.rb +4 -1
- data/lib/sensu-plugins-haproxy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fac8d66e08abbe91447d406563b06888e1c97b8
|
4
|
+
data.tar.gz: 7ae7f3a436bc7292db84d5297450e654a19139f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/bin/metrics-haproxy.rb
CHANGED
@@ -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: '
|
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?
|
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.
|
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-
|
11
|
+
date: 2017-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|