summaryrefslogtreecommitdiffstats
path: root/collectors/python.d.plugin/ceph/ceph.chart.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:04 +0000
commita836a244a3d2bdd4da1ee2641e3e957850668cea (patch)
treecb87c75b3677fab7144f868435243f864048a1e6 /collectors/python.d.plugin/ceph/ceph.chart.py
parentAdding upstream version 1.38.1. (diff)
downloadnetdata-a836a244a3d2bdd4da1ee2641e3e957850668cea.tar.xz
netdata-a836a244a3d2bdd4da1ee2641e3e957850668cea.zip
Adding upstream version 1.39.0.upstream/1.39.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 494eef45d..4bcbe1979 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):