No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README.md
cloudwatch.go
dynamodb.go
ec2.go
glide.lock
glide.yaml
grafana.go
main.go
sas_test.go
sqs.go

README.md

README

Generate Grafana panel JSON for CloudWatch datasource.

Grafana has HTTP API but at a glance it doens't have APIs for panel operations. We con configure panels with JSON. This command generates JSONs for panels which datasource is CloudWatch.

Getting Started

You need to configure ~/.aws/credentials first.

Generate a Grafana panel JSON for all EC2 instances in ap-northeast-1 for CPUUtilization.

$ gen-grafana-panel-json -datasource CloudWatch

Switching profile.

$ AWS_PROFILE=staging gen-grafana-panel-json ec2 CloudWatch

EC2

To filter EC2, use -filters.

$ gen-grafana-panel-json ec2 -filters tag:Name,dev-*,instance-type,t2.* CloudWatch

SQS

Give metric name, datasource name and prefix.

$ gen-grafana-panel-json sqs -m ApproximateNumberOfMessagesVisible CloudWatch dev-