hubot-grafana
hubot-grafana copied to clipboard
Fetch entire dashboard instead of panels
Grafana can render the entire dashboard in one go using : http://1.2.3.4:3000/render/d/randompath/myDashboardName
This results in a very nice image that can sometimes be more useful than the specific panels.
Interesting! I'm guessing this is a new feature in Grafana?
Since so many people depend on this package these days, I want to make sure I don't cause any headache in userland. Can you attach some screenshots comparing the two?
here's an example : http://play.grafana.org/render/d/000000061/1-promcon-dashboard?from=now-1h&to=now&orgId=1
not all dashboards will come out looking better this way - but quite a few will!
Cool. I think this should probably be an opt-in feature, if only because there's a lot of extra stuff in the image (mostly noting the icons) that some folks may not want. Would be something like adding an option for HUBOT_GRAFANA_RENDER_DASHBOARD=1
(defaults to 0
).
I was actually thinking maybe just add a new command graf render <dashboard slug>
That way you have full backwards compatibility
Awesome feature, I just added a kiosk
feature, so you can do graf db GZ3rrHgSk kiosk width=1920 height=1200 now now-7d
Added it to https://github.com/stephenyeargin/hubot-grafana/pull/166