Skip to content

Commit 206f27c

Browse files
authored
Merge pull request #292 from riemann/fix-nginx-checks
Fix `riemann-nginx` checks selection
2 parents d2f64b3 + a2814bc commit 206f27c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/riemann/tools/nginx_status.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def tick
7575
values = @re.match(response).to_a[1, 7].map(&:to_i)
7676

7777
@keys.zip(values).each do |key, value|
78+
next unless opts[:checks].include?(key)
79+
7880
report({
7981
service: "nginx #{key}",
8082
metric: value,

0 commit comments

Comments
 (0)