In order to use this feature , use customized Grafana(v7.1.0) downloadable from below links
...
Info |
---|
Note : Please check the Grafana configurations before starting the Grafana and modify it if any changes required. |
...
Prerequisites:
Expand | ||
---|---|---|
| ||
|
Expand | ||
---|---|---|
| ||
|
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.
Configure your mail id in Grafana → Preference → email. ( For this you need admin permission)
Configure work type in table INSIGHTS_WORKFLOW_TYPE - > GRAFANADASHBOARDPDFREPORT.
Configure work flow task in INSIGHS_WORKFLOW_TASK table as below
Code Block language json { "description":"GRAFANA_PDF_Execute", "mqChannel":"WORKFLOW.TASK.GRAFANAPDF.EXCECUTION", "componentName":"com.cognizant.devops.platformreports.assessment.core.GrafanaPDFExecutionSubscriber", "dependency":"0", "workflowType":"GRAFANADASHBOARDPDFREPORT" }
Code Block language json { "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 .
For more details on SMTP config, please see here Server Configuration (server-config.json)
Start the Grafana
There are 2 options to generate PDF
Grafana Dashboard - Immediate dashboard pdf emailed to the user who is downloading it.
Through Configuration - Scheduled dashboard reports with mailing preferences as shown in below screens.
...
Usage:
From Customized Grafana :
...
View file | ||
---|---|---|
|
...
UI for creating and scheduling customized reports:
From the menu select Dashboard Report Download:
...