summaryrefslogtreecommitdiffstats
path: root/python.d/mongodb.chart.py
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2017-12-19 23:39:21 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2017-12-19 23:39:21 +0000
commit61aedf201c2c4bf0e5aa4db32e74f4d860b88593 (patch)
treebcf4f9a0cd8bc2daf38b2ff9f29bfcc1e5ed8968 /python.d/mongodb.chart.py
parentNew upstream version 1.8.0+dfsg (diff)
downloadnetdata-61aedf201c2c4bf0e5aa4db32e74f4d860b88593.tar.xz
netdata-61aedf201c2c4bf0e5aa4db32e74f4d860b88593.zip
New upstream version 1.9.0+dfsgupstream/1.9.0+dfsg
Diffstat (limited to 'python.d/mongodb.chart.py')
-rw-r--r--python.d/mongodb.chart.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python.d/mongodb.chart.py b/python.d/mongodb.chart.py
index bb4c44b0..909a419d 100644
--- a/python.d/mongodb.chart.py
+++ b/python.d/mongodb.chart.py
@@ -2,7 +2,6 @@
# Description: mongodb netdata python.d module
# Author: l2isbad
-from base import SimpleService
from copy import deepcopy
from datetime import datetime
from sys import exc_info
@@ -14,6 +13,8 @@ try:
except ImportError:
PYMONGO = False
+from bases.FrameworkServices.SimpleService import SimpleService
+
# default module values (can be overridden per job in `config`)
# update_every = 2
priority = 60000
@@ -36,6 +37,7 @@ REPL_SET_STATES = [
def multiply_by_100(value):
return value * 100
+
DEFAULT_METRICS = [
('opcounters.delete', None, None),
('opcounters.update', None, None),