Project

General

Profile

Actions

Bug #47474

closed

mgr/dashboard: share/export grafana dashboards as images

Added by Ernesto Puerta over 3 years ago. Updated about 3 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
Monitoring
Target version:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

grafana_error.png (49.1 KB) grafana_error.png Ernesto Puerta, 09/15/2020 06:32 PM
grafana_direct_link.png (87.8 KB) grafana_direct_link.png Ernesto Puerta, 09/15/2020 06:32 PM
grafana_share.png (49.9 KB) grafana_share.png Ernesto Puerta, 09/15/2020 06:32 PM
Screenshot from 2020-09-21 14-17-05.png (47.9 KB) Screenshot from 2020-09-21 14-17-05.png Timeout error Avan Thakkar, 09/21/2020 12:38 PM
Screenshot from 2020-09-21 18-09-22.png (37.4 KB) Screenshot from 2020-09-21 18-09-22.png Rendered image of Pools overview Avan Thakkar, 09/21/2020 12:39 PM

Related issues 1 (1 open0 closed)

Related to Dashboard - Feature #49312: mgr/dashboard: screen capture API to share/export grafana dashboards as imagesNew

Actions
Actions #1

Updated by Ernesto Puerta over 3 years ago

  • Description updated (diff)

Updated by Avan Thakkar over 3 years ago

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"

Actions #3

Updated by Avan Thakkar over 3 years ago

Yes and agree with embedding the grafana-image-renderer plugin, following this comment https://community.grafana.com/t/rendering-time-out-without-error/26773

Actions #4

Updated by Lenz Grimmer over 3 years ago

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.

Actions #5

Updated by Avan Thakkar over 3 years ago

Lenz Grimmer wrote:

To my knowledge, this is a configuration option that needs to be enabled at build time in Grafana

Yes, you are right.

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.

Yes, maybe. I tried embedding the plugin, but it throws "Rendering failed" error, as it's missing some libraries, which seems to be different for different OS as mentioned here https://grafana.com/docs/grafana/latest/administration/image_rendering/#grafana-image-renderer-plugin-and-remote-rendering-service. So maybe this can make installation heavy?!

Actions #6

Updated by Lenz Grimmer over 3 years ago

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.

Actions #7

Updated by Lenz Grimmer over 3 years ago

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

Actions #8

Updated by Avan Thakkar about 3 years ago

  • Related to Feature #49312: mgr/dashboard: screen capture API to share/export grafana dashboards as images added
Actions #9

Updated by Avan Thakkar about 3 years ago

Moving this to Won't Fix as suggested here https://tracker.ceph.com/issues/47474/quoted?journal_id=175546.

Actions #10

Updated by Avan Thakkar about 3 years ago

  • Status changed from New to Won't Fix
Actions #11

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 148 to Monitoring
Actions

Also available in: Atom PDF