Many customers use https://aws.amazon.com/cloudwatch/ dashboards to monitor applications and often ask how they can integrate https://aws.amazon.com/devops-guru/ Insights in order to have a unified dashboard for monitoring. This blog post showcases integrating DevOps Guru proactive and reactive insights to a CloudWatch dashboard by using Custom Widgets.

In this post, we are providing sample code for the Lambda function that will call DevOps Guru APIs to retrieve the insights information and displays as a widget in the CloudWatch dashboard.

// SPDX-License-Identifier: MIT-0 // CloudWatch Custom Widget sample: displays count of Amazon DevOps Guru Insights const aws = require('aws-sdk'); const DOCS = `## DevOps Guru Insights Count Displays the total counts of Proactive and Reactive Insights in DevOps Guru.

Three Lambda functions that will support CloudWatch Dashboard custom widgets An http://aws.amazon.com/iam role to that allows the Lambda function to access DevOps Guru Insights and to publish logs to CloudWatch Three Log Groups under CloudWatch A CloudWatch dashboard with widgets to pull data from the Lambda Functions

Related Articles