Scheduled email reporting to export Dynatrace dashboards as PDF and PNG files.
NOTE: This documentation is out of date and is in progress of being updated for the new K8S support.
In an effort to empower Dynatrace dashboards for reporting use cases, I want to introduce an automated reporting feature. This gives users the ability to receive dashboard reports via email on a configurable schedule (e.g. daily, weekly, monthly). Dashboard report emails will include a snapshot of the dashboard attached as a PDF and PNG.
This CLI tool is designed for Dynatrace administrators to configure automated reporting for their users.
Here is a quick introduction of the setup you need to get automated reporting up and running.
- Clone this repository onto a Linux VM or Linux ActiveGate.
git clone https://github.com/geoteo/dt-automated-reporting- Inside the repo directory install all the required dependencies.
npm i- Run the app.
node index.jsNOTE: To run the script in the background on Linux use nohup, this allows us to the run node application in the background.
$ nohup node index.js > /dev/null 2>&1 &Afterwards the following wizard will present itself where you will walkthrough the configuration setup.
- Automated reporting of dashboards on a daily, weekly, or monthly basis.
- Persistent configuration settings for SMTP and Dashboards.
- Attaches a PDF and PNG of the dashboard to the email.
SMTP Configuration
~/.config/configstore/dt-automated-reporting.jsonDashboard Configuration
config.json- chalk → colorizes the output
- clear → clears the terminal screen
- clui → draws command-line tables, and spinners
- figlet → creates ASCII art from text
- inquirer → creates interactive command-line user interface
- configstore → easily loads and saves config
- puppeteer → provides a high-level API for headless Chrome
- nodemailer → sends emails
- node-cron → schedule tasks using full crontab syntax
- index.js → where the app initializes and listens for input in the terminal
- dt-auto-report.js → automated reporting functions
- inquirer.js → list of questions to prompt user for configuration
- My GitHub: https://github.com/geoteo
- This Repository: https://github.com/geoteo/dt-automated-reporting
- Issues: https://github.com/geoteo/dt-automated-reporting/issues
- In case of sensitive bugs like security vulnerabilities, please contact george.teodorescu@dynatrace.com directly instead of using issue tracker. I value your effort to improve the security and privacy of this project!
- Dynatrace Anonymous Dashboard Documentation: https://dt-url.net/anon
The code in this project is licensed under MIT license.
