Skip to content

bgardner-noggin/grafana-cloudwatchalarm-datasource

 
 

Repository files navigation

Grafana CloudWatch Alarm data source

A data source plugin for Grafana which queries for the current state of Amazon Web Services CloudWatch alarms.

This Grafana plugin has been designed to help us to easily create a single dashboard that gives us a quick overview of all alerts/alarms from different monitoring solutions (ex: Grafana and CloudWatch).

Note that it only queries CloudWatch for the current state of alarms, it does not query for the history. As such, this data source is best used with the "table" visualization.

If you would like to create graphs based on the alarm history, it would be better to configure AWS to store the alarm state as custom metrics (the regular alarm history only goes back 14 days). For example by following this guide: Extending and exploring alarm history in Amazon CloudWatch and then using the regular CloudWatch data source that ships with Grafana.

Building this plugin

Frontend

  1. Install dependencies
npm install
  1. Build plugin in development mode
npm run dev
  1. Build plugin in production mode
npm run build

Backend

  1. Update Grafana plugin SDK for Go dependency to the latest minor version:
go get -u github.com/grafana/grafana-plugin-sdk-go
go mod tidy
  1. Build backend plugin binaries for Linux, Windows and Darwin:
mage -v
  1. List all available Mage targets for additional commands:
mage -l

About

Grafana data source for Amazon AWS CloudWatch Alarm status

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 53.4%
  • TypeScript 43.5%
  • JavaScript 3.1%