Dashboard Reports
Subhra264 opened this issue · comments
Which OpenObserve functionalities are relevant/related to the feature request?
dashboards
Description
Overview: Dashboard reports are introduced to let users generate pdf of selected dashboards and send it over smtp to appropriate recipients automatically by the openobserve server in a scheduled manner. For now, only one dashboard tab can be selected for one report.
Proposed solution
Prerequisite:
- SMTP configurations must be enabled.
- Chrome ENV configurations must be enabled.
ZO_WEB_URL
,ZO_REPORT_USER_NAME
,ZO_REPORT_USER_PASSWORD
must be specified.
Features:
- Report creation: User can create a report by going to the
Report
section of the UI, clicking onAdd Report
button, and filling up all the required fields. - In the
Schedule
section there are various options to schedule report -- Cron jobs: User can specify the cron expression (e.g. 0 * * * * * to trigger report every minute)
- Once: The report will be triggered only once.
- Hourly: Report will be triggered hourly.
- Daily: Report will be triggered daily (every 24 hours)
- Weekly: Report will triggered weekly (every 7 days).
- Monthly: Report will be triggered monthly (every 30 days).
- Custom: The interval can be customized.
IfSend Now
button is clicked, the report trigger will start immediately and the frequency of trigger is as selected (Once, Hourly etc). Instead of sending immediately, the user also can customize from when the user wants to start the report triggers.
![Screenshot 2024-05-22 at 12 10 34 PM](https://private-user-images.githubusercontent.com/59690052/332686886-47fe127a-503a-40c2-9708-4837cd7f89c0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyNjkyMzQsIm5iZiI6MTcxOTI2ODkzNCwicGF0aCI6Ii81OTY5MDA1Mi8zMzI2ODY4ODYtNDdmZTEyN2EtNTAzYS00MGMyLTk3MDgtNDgzN2NkN2Y4OWMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDIyNDIxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU4MjkzMjg2NTUwMDI2NjhlZjE3NGNiMGY4YjY5ZTgzNzI2OTdjNjQwMGY4N2JkZWZmNDE2NmM1ZTI2MzllMmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Lbe_0LiOHo_98gKrNybOdTSU0Wz9Dtxqt0n1ojH2Ma4)
- In the
Share
section, user can give the email subject in theTitle
field, comma(',')/semi colon(';') separated emails in recipients section and the email message as well.
![Screenshot 2024-05-22 at 12 25 08 PM](https://private-user-images.githubusercontent.com/59690052/332691118-d7faf31f-477d-43ff-8577-74ad19fdc564.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyNjkyMzQsIm5iZiI6MTcxOTI2ODkzNCwicGF0aCI6Ii81OTY5MDA1Mi8zMzI2OTExMTgtZDdmYWYzMWYtNDc3ZC00M2ZmLTg1NzctNzRhZDE5ZmRjNTY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDIyNDIxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFkOTRjZWFmZmQ5MDk2OTQ4MGVmNDUwYjY5MTU4ZTQ5Yzg4OGU3MjQwZGEyNjBiNGNiZDM2OWE3NDBkNzQyNjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.oh2dfiCNTDtlBFotBQZPOjiqUwt8DLYzRQNtYgoANek)
- Just like alerts, reports also can be enabled/disabled and all the details can also be updated (except the report name).
Alternatives considered
NA
this is done