Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #11 from tarantool/fix_prometheus_true_false_parsing
Browse files Browse the repository at this point in the history
fix prometheus true/false parsing
  • Loading branch information
mtrempoltsev authored Sep 14, 2018
2 parents 55eb876 + 939a532 commit 5d9ef2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
22 changes: 0 additions & 22 deletions rockspecs/prometheus-1.1.0.rockspec

This file was deleted.

6 changes: 5 additions & 1 deletion tarantool-metrics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ local function measure_tarantool_replication_lag()

if idle ~= 0 then
local replication_timeout = box.cfg.replication_timeout
replication_state_normal:set(idle <= replication_timeout)
if idle <= replication_timeout then
replication_state_normal:set(1)
else
replication_state_normal:set(0)
end
end
end

Expand Down

0 comments on commit 5d9ef2e

Please sign in to comment.