Bug #47474
closed
mgr/dashboard: share/export grafana dashboards as images
Added by Ernesto Puerta over 3 years ago.
Updated about 3 years ago.
Description
With the currently embedded plugins Grafana fails to export/share images from dashboards
t=2020-09-11T15:42:29+0000 lvl=info msg=Rendering logger=rendering path=d-solo/Vgrwr0IMz/ceph-cluster?
t=2020-09-11T15:42:29+0000 lvl=eror msg="executable not found" logger=rendering executable=/usr/share/grafana/tools/phantomjs/phantomjs
t=2020-09-11T15:42:29+0000 lvl=eror msg="Rendering failed - PhantomJS isn't installed correctly" logger=context userId=1 orgId=1 uname=admin error="PhantomJS executable not found"
t=2020-09-11T15:42:29+0000 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/render/d-solo/Vgrwr0IMz/ceph-cluster status=500 remote_addr=10.74.8.241 time_ms=2 size=1763 referer=
A plugin providing this functionality is https://grafana.com/grafana/plugins/grafana-image-renderer
Files
Related issues
1 (1 open — 0 closed)
- Description updated (diff)
Ernesto Puerta wrote:
With the currently embedded plugins Grafana fails to export/share images from dashboards
The issue isn't reproducible for the master branch. The grafana dashboards are being able to share/export, except for "Ceph-Cluster" grafana dashboard which is throwing timeout error.
t=2020-09-21T12:34:13+0000 lvl=info msg="Rendering timed out" logger=rendering renderer=phantomJS
t=2020-09-21T12:34:13+0000 lvl=eror msg="Timeout error. You can set timeout in seconds with &timeout url parameter" logger=context userId=0 orgId=1 uname= error="Timeout error. You can set timeout in seconds with &timeout url parameter"
To my knowledge, this is a configuration option that needs to be enabled at build time in Grafana and depends on the PhantomJS headless web browser, which makes the Grafana installation quite "heavy". I'm not sure that's a pure Ceph Dashboard issue.
I suggest to resolve this issue as "Won't fix", as it's primarily a Grafana configuration issue and therefore out of scope for Ceph Dashboard.
Instead, let's create a new feature tracker that implements an option to take a screen shot of an embedded Grafana image using the browser's built-in screen capture API, as Ernesto suggested during today's stand-up.
Lenz Grimmer wrote:
Instead, let's create a new feature tracker that implements an option to take a screen shot of an embedded Grafana image using the browser's built-in screen capture API, as Ernesto suggested during today's stand-up.
Looks as if that API is not really intended to be used for creating still image screen shots of a given browser area. I was not able to find an existing API that support this, but there's some work in progress here: https://github.com/fernap3/screenshot
- Related to Feature #49312: mgr/dashboard: screen capture API to share/export grafana dashboards as images added
- Status changed from New to Won't Fix
- Project changed from mgr to Dashboard
- Category changed from 148 to Monitoring
Also available in: Atom
PDF