stephenyeargin / hubot-grafana

📈🤖 Query Grafana dashboards
http://docs.grafana.org/tutorials/hubot_howto/
MIT License
154 stars 48 forks source link

added "render" command to render an entire dashboard #92

Closed flyingbarron closed 5 years ago

flyingbarron commented 5 years ago

This is a solution for issue #72 .

It works fine, but I apparently don't know how to setup a test correctly :(

I've put my test in comment.

stephenyeargin commented 5 years ago

Worth noting that the way the render function works in grafana, the dashboard is likely to be truncated if it is larger than one panel.

render

flyingbarron commented 5 years ago
  1. In my use-case, it's often going to be a thumb-nail/hint to launch into a link with better info
  2. Worst case, I'll open an issue with Grafana :)
stephenyeargin commented 5 years ago

It is weird to me that the native PhantomJS doesn't have some way to pass along height=auto or something similar. We can release this, but I have a feeling we'll be pointing back to this issue from when someone tries to use.