Taking Screenshot of Kibana Dashboard with Puppeteer — Automation

Hariom Vashisth
1 min readMay 23, 2020

--

Most things that you did manually can be automated!

Goal

My new task is to take a screenshot of Kibana dashboard at some point of time and email that captured screenshot to business users.

What

Kibana — Kibana is the open-source analytics & monitoring solution for every database.

Puppeteer — Puppeteer is a Node library that I used for scraping data.

How

Challenges:

  1. Allow ignore-certificate-errors [for invalid/unknown/self signed SSL certificates]

This is actually very exciting stuff explained in the simple 4 step process:

  • Login Kibana
  • Open the dashboard and wait for Navigation [wait until network idle]
  • Take full page screenshot in high-quality jpeg images.
  • return appropriate response and close pptr

Sounds cool!

Working code is available here -> https://github.com/hariom282538/kibana_dashboard_screenshot

--

--