...
In order to use this feature , we need to use customized Grafana(v7.1.0) uploaded here .
Expand | ||
---|---|---|
| ||
Expand | ||
---|---|---|
| ||
Info |
---|
Note : Please check the grafana configurations before starting the Grafana and modify it if any changes. |
Prerequisites:
...
Start the Grafana
Prerequisite : PlatformService >= 8.4 and Grafana > 7.1.0
Info |
---|
Note : Please check the Grafana configurations before starting the Grafana and modify it if any changes required. |
...
Sample Pdf
|
Prerequisites:
Expand | ||
---|---|---|
| ||
|
Start the Grafana
Configure datasource.
Name - PDF_ENDPOINT
url - http<protocol>://localhost:8080<host>/PlatformService/datasourceexternalApi/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)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
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 your smtp configurations in server-config.json .
For more details on SMTP config, please see here Server Configuration (server-Configconfig.json Components
Start the Grafana using below commands or configure service with respect to OS.
Windows - .\bin\windows-amd64\grafana-server --homepath=.
Linux - .\bin\linux-amd64\grafana-server --homepath=.
Usage:
Grafana PDF Download Options:
Dashboard
Click the below icon dropdown and choose dashboard .On click you will get a message "PDF sent to your inbox!" .
This option will print the entire dashboard as PDF format which cannot be printable if the dashboard is huge .
Info |
---|
Mail will be received shortly since it is processed offline. |
...
Sample pdf for the above dashboard:
View file | ||
---|---|---|
|
Printable
Click the below icon dropdown and choose Printable .On click you will get a message "PDF sent to your inbox!" .
This option will print the entire dashboard as PDF format which can be printable .
Note: Text panels are not supported in printable . Either remove text panels in dashboard or use Dashboard option
Info |
---|
Mail will be received shortly since it is processed offline. |
Sample PDF for Printable
...
Scheduled dashboard reports with mailing preferences as shown in below screens.
...