hubot-grafana icon indicating copy to clipboard operation
hubot-grafana copied to clipboard

Fetch entire dashboard instead of panels

Open flyingbarron opened this issue 6 years ago • 4 comments

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.

flyingbarron avatar Apr 04 '18 16:04 flyingbarron

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?

stephenyeargin avatar Apr 04 '18 16:04 stephenyeargin

here's an example : http://play.grafana.org/render/d/000000061/1-promcon-dashboard?from=now-1h&to=now&orgId=1

image

not all dashboards will come out looking better this way - but quite a few will!

flyingbarron avatar Apr 04 '18 16:04 flyingbarron

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).

stephenyeargin avatar Apr 04 '18 16:04 stephenyeargin

I was actually thinking maybe just add a new command graf render <dashboard slug> That way you have full backwards compatibility

flyingbarron avatar Apr 04 '18 16:04 flyingbarron

Awesome feature, I just added a kiosk feature, so you can do graf db GZ3rrHgSk kiosk width=1920 height=1200 now now-7d

image

KeesCBakker avatar Aug 19 '23 06:08 KeesCBakker

Added it to https://github.com/stephenyeargin/hubot-grafana/pull/166

KeesCBakker avatar Aug 19 '23 06:08 KeesCBakker