Grafana dashboard wizard/generator
dash = Dashboard("stocks", start='now-1d', dataSource='iguazio')
dash.template(name="SYMBOL", label="Symbol", query="fields=symbol;table_name=stocks;backend=kv;container=bigdata")
tbl = Table('tbl1',span=8).source(table='stocks',fields=['symbol','name','currency','price','last_trade','timezone','exchange'],container='bigdata')
log = Ajax(title='Log',url='https://stream-view.iguazio.app.vjszzjiaingr.iguazio-cd0.com/')
dash.row([tbl,log])
dash.row([Graph(metric).series(table="stock_metrics", fields=[metric], filter='symbol=="$SYMBOL"',container='bigdata') for metric in ['price','volume','sentiment']])
print(dash.show())
dash.deploy('http://grafana')