Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Checking for Major as well as minor versions

  • Loading branch information...
commit 8b78c801479cf62e497166b4d4e7023f9d10cd8b 1 parent 438e438
@phobos182 phobos182 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 collectors/0/elasticsearch.py
View
4 collectors/0/elasticsearch.py
@@ -225,12 +225,12 @@ def printmetric(metric, value, **tags):
if is_numeric(value):
printmetric("transport." + stat, value)
# New in ES 0.17:
- if minor >= 17:
+ if major >= 0 and minor >= 17:
for stat, value in nstats.get("http", {}).iteritems():
if is_numeric(value):
printmetric("http." + stat, value)
# New in ES 0.19:
- if minor >= 19:
+ if major >= 0 and minor >= 19:
jvm = nstats["jvm"]
for gc, d in jvm["mem"]["pools"].iteritems():
gc = gc.encode("ascii","ignore").replace(" ","_")
Please sign in to comment.
Something went wrong with that request. Please try again.