summaryrefslogtreecommitdiffstats
path: root/collectors/python.d.plugin/ceph/ceph.chart.py
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/python.d.plugin/ceph/ceph.chart.py')
-rw-r--r--collectors/python.d.plugin/ceph/ceph.chart.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/collectors/python.d.plugin/ceph/ceph.chart.py b/collectors/python.d.plugin/ceph/ceph.chart.py
index 494eef45..4bcbe197 100644
--- a/collectors/python.d.plugin/ceph/ceph.chart.py
+++ b/collectors/python.d.plugin/ceph/ceph.chart.py
@@ -331,7 +331,7 @@ class Service(SimpleService):
return json.loads(self.cluster.mon_command(json.dumps({
'prefix': 'df',
'format': 'json'
- }), '')[1].decode('utf-8'))
+ }), b'')[1].decode('utf-8'))
def _get_osd_df(self):
"""
@@ -341,7 +341,7 @@ class Service(SimpleService):
return json.loads(self.cluster.mon_command(json.dumps({
'prefix': 'osd df',
'format': 'json'
- }), '')[1].decode('utf-8').replace('-nan', '"-nan"'))
+ }), b'')[1].decode('utf-8').replace('-nan', '"-nan"'))
def _get_osd_perf(self):
"""
@@ -351,7 +351,7 @@ class Service(SimpleService):
return json.loads(self.cluster.mon_command(json.dumps({
'prefix': 'osd perf',
'format': 'json'
- }), '')[1].decode('utf-8'))
+ }), b'')[1].decode('utf-8'))
def _get_osd_pool_stats(self):
"""
@@ -363,7 +363,7 @@ class Service(SimpleService):
return json.loads(self.cluster.mon_command(json.dumps({
'prefix': 'osd pool stats',
'format': 'json'
- }), '')[1].decode('utf-8'))
+ }), b'')[1].decode('utf-8'))
def get_osd_perf_infos(osd_perf):