Open TonyChan1113 opened 1 year ago
@TonyChan1113 I have updated the script to support latest Grafana version 9.4.7. Can you check with this new script?
Thanks for your update, but it's still not working. I used this command: node grafana_pdf_newest.js "http://10.0.30.32:3000/d/YfYZfzE4k/sample-host-health-report?orgId=1&var-oem_gf_emsite=Oracle%20Enterprise%20Manager&var-oem_gf_target_type=host&var-oem_gf_target_name=oemcc" admin:admin output/grafana_host.pdf
. The dashboard has data but the pdf is not. Please help.
grafana_host.pdf
I use Grafana 8.2.7 and OEM 3.0.0. Thanks
set headless to false in the script and check if you see the page correctly
`Error: Failed to launch the browser process! [22800:22800:0417/103724.820687:ERROR:browser_main_loop.cc(1439)] Unable to open X display. [0417/103724.827427:ERROR:nacl_helper_linux.cc(307)] NaCl helper process running without a sandbox! Most likely you need to configure your SUID sandbox correctly
` It will cause an error like this. Thank you.
to debug this it should open correctly with headless false.
I think the error is for No Data . PDF file is because the Code is for Grafana 9.4.7. Where could I find the code for Grafana 8.2.7? Thank you. It's because Oracle Plugin doesn't work on version 9.4.7
Thanks for your update, but it's still not working. I used this command:
node grafana_pdf_newest.js "http://10.0.30.32:3000/d/YfYZfzE4k/sample-host-health-report?orgId=1&var-oem_gf_emsite=Oracle%20Enterprise%20Manager&var-oem_gf_target_type=host&var-oem_gf_target_name=oemcc" admin:admin output/grafana_host.pdf
. The dashboard has data but the pdf is not. Please help. grafana_host.pdf I use Grafana 8.2.7 and OEM 3.0.0. Thanks
Well it seems that using admin:admin for accessing of your hosted Grafana no longer works, you may try using API Key instead (refer to: https://gist.github.com/svet-b/1ad0656cd3ce0e1a633e16eb20f66425?permalink_comment_id=3867894#gistcomment-3867894).
Hi, I'm using your code to export my dash board to PDF .It's run but the PDF file is like this.I searched everywhere but can't find the solution.
grafana_5.pdf