Skip to content

Commit

Permalink
Merge pull request #292 from riemann/fix-nginx-checks
Browse files Browse the repository at this point in the history
Fix `riemann-nginx` checks selection
  • Loading branch information
jamtur01 authored May 30, 2024
2 parents d2f64b3 + a2814bc commit 206f27c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/riemann/tools/nginx_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def tick
values = @re.match(response).to_a[1, 7].map(&:to_i)

@keys.zip(values).each do |key, value|
next unless opts[:checks].include?(key)

report({
service: "nginx #{key}",
metric: value,
Expand Down

0 comments on commit 206f27c

Please sign in to comment.