summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlaine Schanfeldt <git@blaines.me>2020-02-10 00:52:43 -0800
committerGitHub <noreply@github.com>2020-02-10 11:52:43 +0300
commit322e66762f29d495ba0bb56ab7aec3b53e03e90f (patch)
treeedd42d8cc3abbccb10209c4bcdb31ca1496133bb
parent8baf4b6cd39989730cbb9c3628044aab439bd691 (diff)
invalid literal for float(): NN.NNt (#8013)
* invalid literal for float(): NN.NNt
-rw-r--r--collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py b/collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py
index 8aaa08583b..a759de105d 100644
--- a/collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py
+++ b/collectors/python.d.plugin/elasticsearch/elasticsearch.chart.py
@@ -513,6 +513,8 @@ def convert_index_store_size_to_bytes(size):
return round(float(size[:-2]) * 1024 * 1024)
elif size.endswith('gb'):
return round(float(size[:-2]) * 1024 * 1024 * 1024)
+ elif size.endswith('tb'):
+ return round(float(size[:-2]) * 1024 * 1024 * 1024 * 1024)
elif size.endswith('b'):
return round(float(size[:-1]))
return -1