summaryrefslogtreecommitdiffstats
path: root/collectors/python.d.plugin
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2019-08-08 11:25:31 +0300
committerGitHub <noreply@github.com>2019-08-08 11:25:31 +0300
commit0ab6708fae599b9f490e1dc073292c8feb492f62 (patch)
tree1845446519aecf403c6fd22800c3ff828ba2e505 /collectors/python.d.plugin
parent66d6498ed4fa433fdd397da5ef1470312e539bd6 (diff)
mysql: do not remove `slave_status` from queries in module (#6617)
Diffstat (limited to 'collectors/python.d.plugin')
-rw-r--r--collectors/python.d.plugin/mysql/mysql.chart.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/collectors/python.d.plugin/mysql/mysql.chart.py b/collectors/python.d.plugin/mysql/mysql.chart.py
index 64bb18b03e..46d0712fb7 100644
--- a/collectors/python.d.plugin/mysql/mysql.chart.py
+++ b/collectors/python.d.plugin/mysql/mysql.chart.py
@@ -695,9 +695,8 @@ class Service(MySQLService):
if 'slave_status' in raw_data:
status = self.get_slave_status(raw_data['slave_status'])
- data.update(status)
- else:
- self.queries.pop('slave_status')
+ if status:
+ data.update(status)
if 'user_statistics' in raw_data:
if raw_data['user_statistics'][0]: