{"repo":"arthur-mdn/ExportGrafanaDashboardToPDF","free":true,"listed":false,"github":"https://github.com/arthur-mdn/ExportGrafanaDashboardToPDF","clone":"git clone https://github.com/arthur-mdn/ExportGrafanaDashboardToPDF.git","description":"Free PDF Export Tool in Grafana Community version - Using Puppeteer","language":"HTML","stars":67,"topics":["export-pdf","grafana","grafana-dashboard","grafana-dashboard-exporter","pdf-generation","puppeteer"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"Grafana PDF Exporter Grafana PDF Exporter is a tool that enables you to export Grafana v12 dashboards as high-quality PDFs using Puppeteer. It runs a lightweight Node.js server that processes HTTP requests, launches a headless browser, and captures full dashboard views. You can also inject a custom button into the Grafana interface to allow users to export directly from the dashboard UI. Prerequisites - Docker - Docker Compose Installation Clone this repository and navigate to the project directory: Configuration Environment Variables Duplicate the example environment file and rename it. Edit the values according to your configuration. GRAFANA USER and GRAFANA PASSWORD are the credentials the exporter will use to log into Grafana. For a service account set GRAFANA SERVICE ACCOUNT to true and provide token in GRAFANA PASSWORD . Usage To start the server, run the following command: By default, the service runs on port 3001. Generating a PDF To generate a PDF, send a POST request to /generate-pdf with the Grafana dashboard URL. The server will respond with the URL of the generated PDF. Using cURL Using the generate-pdf.sh shell script Using an HTML button injected into Grafana Make sure the disable sanitize html setting is set to true in your Grafana configuration to allow HTML/JS injection. To add a PDF export button: - Copy the content of grafana-button.html into a Grafana text panel. - Modify the server URL in the script if necessary. The button should now be displayed in the","default_branch":null,"files":null,"tree":[],"storefront":"/r/arthur-mdn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/arthur-mdn/ExportGrafanaDashboardToPDF/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}