]> arthur.barton.de Git - netdata.git/blob - python.d/example.chart.py
different intervals for different modules; better handling of crashing modules; code...
[netdata.git] / python.d / example.chart.py
1 import random
2
3 update_every=10
4
5 def check():
6     return True
7
8 def create():
9     print("CHART python_example.random '' 'A random number' 'random number' random random line 90000 1")
10     print("DIMENSION random1 '' absolute 1 1")
11     return True
12
13 def update(interval):
14     print("BEGIN python_example.random "+str(interval))
15     print("SET random1 = "+str(random.randint(0,100)))
16     print("END")
17     return True