Grafana PDF Download

Grafana PDF Download

Prerequisite : PlatformService >= 8.4 and Grafana > 7.1.0

Note : Please check the Grafana configurations before starting the Grafana and modify it if any changes required.


Sample Pdf

Prerequisites:

  • Start the Grafana

  • Configure datasource.

    • Name - PDF_ENDPOINT

    • url - <protocol>://<host>/PlatformService/externalApi/exportPDF/getDashboardAsPDF(Note: if App is configured with domain name use that to configure)

    • No Auth is required. Click on Save and Test.

  • Make sure you have workflow and report jar are running to receive mails.

  • Make sure that you have “dashboardReportTemplate“ folder in INSIGHTS_HOME, click here to download sample files Click here dashboardReportTemplate.zip

  • Configure work type in table INSIGHTS_WORKFLOW_TYPE - > GRAFANADASHBOARDPDFREPORT.

  • Configure work flow task in INSIGHS_WORKFLOW_TASK table as below

    •  

      { "description":"GRAFANA_PDF_Execute", "mqChannel":"WORKFLOW.TASK.GRAFANAPDF.EXCECUTION", "componentName":"com.cognizant.devops.platformreports.assessment.core.GrafanaPDFExecutionSubscriber", "dependency":"0", "workflowType":"GRAFANADASHBOARDPDFREPORT" }
    •  

      { "description":"Grafana Email_Exeute", "mqChannel":"WORKFLOW.TASK.EMAIL.EXCECUTION", "componentName":"com.cognizant.devops.platformreports.assessment.core.ReportEmailSubscriber", "dependency":"1", "workflowType":"GRAFANADASHBOARDPDFREPORT"

 

  • Check smtp configurations in server-config.json .

  • Start the Grafana

  • Scheduled dashboard reports with mailing preferences as shown in below screens.


©2021 Cognizant, all rights reserved. US Patent 10,410,152