Thursday, September 2, 2021

Custom Widgets for CloudWatch

 


Last week, Amazon CloudWatch announced the immediate availability of custom widgets.  This new feature is used to gain operational visibility and agility by customizing the content of your CloudWatch dashboard such as adding visualizations, displaying information from multiple data sources or adding controls like buttons to take remediation actions.

Custom widgets can help you to correlate trends over time and spot issues more easily by displaying related data from different sources side by side on CloudWatch dashboards. Custom widgets allow you to extend your CloudWatch dashboards’ out of the box capabilities including line, bar and pie charts with rich, business specific visualizations that represent the operational health and performance of your workloads.

Technically, custom widgets has 3 steps process as below:

  1. CloudWatch dashboard calls the Lambda function containing the widget code. It passes in any custom defined parameters in the widget.
  2. The Lambda function returns a string of HTML, JSON, or Markdown. Markdown is returned as JSON {"markdown":"markdown content"}
  3. The dashboard displays the returned HTML or JSON.


A set of templates and a sample library is available at https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/add_custom_widget_samples.html

No comments:

Post a Comment