Hi everyone!
I’ve setup CloudWatch cross Account monitoring on an AWS account. On the same account I’ve hosted an ECS service with a Grafana image inside with a CloudWatch datasource. Dashboards work perfect and I’m able to see metrics from different accounts. My issue is alerting.
What I want to achieve is to send the AWS Account ID or label and the AWS region on an alert. An example of my desired alert would be the following:
[FIRING:1] TestAlert Grafana critical
Firing
Value: [no value] Labels:
alertname = TestAlert
instance = Grafana
severity = critical
Annotations:
description = descriptions
summary = summary
accountID = 12346789 # <------
AWS Region = eu-west1# <------
Is there a way to achieve this?
Thanks in advance!