Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

typo

  • Loading branch information...
commit f51531aece99ea35e818c21f119f7a82594898aa 1 parent 343cadd
Bin Cui bcui6611 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 diskqueue_stats.py
6 diskqueue_stats.py
View
@@ -120,7 +120,7 @@ def run(self, accessor, scale, threshold=None):
elif accessor["type"] == "number" and delta > threshold_val["number"]["high"]:
symptom = accessor["symptom"].format(util.number_label(delta), util.number_label(threshold_val["number"]["high"]))
num_error.append({"node":active[0], "value": symptom})
- res.append((active[0], int(delta)))
+ res.append((active[0], util.number_label(delta)))
elif accessor["type"] == "percentage" and ratio > threshold_val["percentage"]["low"]:
symptom = accessor["symptom"].format(util.pretty_float(ratio), threshold_val["percentage"]["low"])
num_warn.append({"node":active[0], "value": symptom})
@@ -128,7 +128,7 @@ def run(self, accessor, scale, threshold=None):
elif accessor["type"] == "number" and delta > threshold_val["number"]["low"]:
symptom = accessor["symptom"].format(util.number_label(delta), util.number_label(threshold_val["number"]["low"]))
num_warn.append({"node":active[0], "value": symptom})
- res.append((active[0], int(delta)))
+ res.append((active[0], util.number_label(delta)))
active_total += active[1]
replica_total += replica[1]
if active_total > 0:
@@ -259,7 +259,7 @@ def run(self, accessor, scale, threshold=None):
"high" : 100000,
},
},
- "symptom" : "Number of backlog items '{0}%' is above threshold '{1}%'",
+ "symptom" : "Number of backlog items '{0}' is above threshold '{1}'",
"formula" : "Avg(ep_tap_total_total_backlog_size) > threshold",
}
],
Please sign in to comment.
Something went wrong with that request. Please try again.