anryko / grafana-influx-dashboard

Grafana InfluxDB scripted dashboard
MIT License
132 stars 44 forks source link

Add GET async=false setting support for grafana server side render possibility #30

Closed anryko closed 8 years ago

anryko commented 8 years ago

Dashboard server side rendering (for image fetching) will not work at the moment due to Promise usage in the getdash code which is not supported by phantomjs (https://github.com/grafana/grafana/pull/341).

Implement async boolean GET variable to turn of asynchronous behaviour and Promise usage.

Example: http://grafanaIP/render/dashboard-solo/script/getdash.js?host=hostname&metric=cpu&panelId=1&async=false