Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana's rendering feature on FlowCharting panel does not work #114

Closed
qrtalaci opened this issue Jan 29, 2020 · 10 comments
Closed

Grafana's rendering feature on FlowCharting panel does not work #114

qrtalaci opened this issue Jan 29, 2020 · 10 comments
Labels
bug Something isn't working

Comments

@qrtalaci
Copy link

qrtalaci commented Jan 29, 2020

I would like to create .PNG snapshot images for reporting purpose and tried to invoke the rendering URL on one FlowCharting panel:

image

I tried it with the deprecated PhantomJS renderer and with the new grafana-image-renderer plugin as well, booth give TimeoutError on FlowCharting panels.

This is the debug printout of grafana-image-renderer plugin when I invoke the rendering:

{"level":"info","message":"Render request received', 'url', http://grafana:3000/d-solo/EYdpLlaZk/borg-warner?orgId=1&from=1580291897741&to=1580313497742&panelId=2&width=1000&height=500&tz=Europe%2FBudapest&render=1"}
{"0":"url","1":"http://grafana:3000/d-solo/EYdpLlaZk/panel?orgId=1&from=1580291897741&to=1580313497742&panelId=2&width=1000&height=500&tz=Europe%2FBudapest&render=1","2":"error","3":{"name":"TimeoutError"},"level":"error","message":"Render request failed"}
{"message":"::ffff:172.23.0.4 - - [29/Jan/2020:15:59:25 +0000] \"GET /render?domain=grafana&encoding=&height=500&renderKey=xxx&timeout=60&timezone=Europe%2FBudapest&url=http%3A%2F%2Fgrafana%3A3000%2Fd-solo%2FEYdpLlaZk%2Fpanel%3ForgId%3D1%26from%3D1580291897741%26to%3D1580313497742%26panelId%3D2%26width%3D1000%26height%3D500%26tz%3DEurope%252FBudapest%26render%3D1&width=1000 HTTP/1.1\" - - \"-\" \"Go-http-client/1.1\"\n","level":"info"}

Is it possible to create a snapshot of one FlowChart panel that way? Is it a bug or something should be implemented to make these panels renderable?

@algenty
Copy link
Owner

algenty commented Feb 3, 2020

Need to try, never tested

@taemmert
Copy link

The feature supports to share with externals a quasi online view of a dedicated FlowChart panel. Does anybody have any idea how to solve it?

@algenty algenty added the bug Something isn't working label Mar 16, 2020
@algenty
Copy link
Owner

algenty commented Mar 21, 2020

For information, work in progress, i added this.renderingCompleted(), render function give a result but without colors ;
chrome_yvn8vIxAqm
I dont know why at this time

@algenty
Copy link
Owner

algenty commented Mar 21, 2020

I add link with grafana issue
grafana/grafana-image-renderer#67

@ryantxu
Copy link
Contributor

ryantxu commented Mar 21, 2020

@algenty -- you may want to add a slight delay after you think it is done before calling renderingCompleted()

@algenty
Copy link
Owner

algenty commented Mar 21, 2020

Hi @ryantxu,
How do you do ?
I'll try it
A little question, with "Direct link rendered image" called, which event is called ? 'render' ? 'snapshot' ?
In code :
// Events Render
ctrl.events.on('render', () => {
this.render();
});

@algenty
Copy link
Owner

algenty commented Mar 21, 2020

It works with a delay, but i'am not satisfied with this method because display is longer
chrome_xsALp2QlFG

@qrtalaci
Copy link
Author

qrtalaci commented Apr 3, 2020

Thank you, it works like a charm :)

@qrtalaci qrtalaci closed this as completed Apr 3, 2020
@taemmert
Copy link

taemmert commented Apr 3, 2020

Thank You very much guys!
Stay healthy!

@algenty
Copy link
Owner

algenty commented Apr 3, 2020

You'r welcome :)
Be carefull, disable animation in flowchart section if u use rendering
thx @ryantxu for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants