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