Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Reporting for Dynatrace Dashboards

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.

Installing / Getting started

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.js

NOTE: 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.

Features

  • 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.

Configuration Files

SMTP Configuration

~/.config/configstore/dt-automated-reporting.json

Dashboard Configuration

config.json

Application Dependencies

  • 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

Files

  • 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

Links

Licensing

The code in this project is licensed under MIT license.

About

Scheduled email reporting for exporting Dynatrace dashboards to PDF and PNG files.

Resources

Stars

5 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages