]> arthur.barton.de Git - netdata.git/blobdiff - python.d/example.chart.py
python plugin fixes for better tracing debugging
[netdata.git] / python.d / example.chart.py
index ec97415c2c13d15edf3a6e50573f1c35f62511bc..b990b12a8dcb831f06fd2cd34f17e9f8f5e01361 100644 (file)
@@ -1,16 +1,18 @@
 # Description: example netdata python.d plugin
 # Author: Pawel Krupa (paulfantom)
 
+import os
+import sys
 import random
 from base import BaseService
 
-NAME = "example.chart.py"
+NAME = os.path.basename(__file__).replace(".chart.py", "")
+
 # default module values
-update_every = 3
+update_every = 4
 priority = 90000
 retries = 7
 
-
 class Service(BaseService):
     def __init__(self, configuration=None, name=None):
         super(self.__class__,self).__init__(configuration=configuration, name=name)