# -*- coding: utf-8 -*-
-# Description: apache netdata python.d plugin
+# Description: apache netdata python.d module
# Author: Pawel Krupa (paulfantom)
from base import UrlService
# default module values (can be overridden per job in `config`)
# update_every = 2
priority = 60000
-retries = 5
+retries = 60
# default job configuration (overridden by python.d.plugin)
# config = {'local': {
"ConnsAsyncClosing": 'closing',
"ConnsAsyncWriting": 'writing'}
- def _format_data(self):
+ def _get_data(self):
"""
Format data received from http request
:return: dict
"""
try:
- raw = self._get_data().split("\n")
+ raw = self._get_raw_data().split("\n")
except AttributeError:
return None
data = {}