Skip to content

Integration

VitalRix and AWS CloudWatch

Bring AWS metrics next to your traces, logs and uptime checks: chart RDS connections beside API latency and alert on both with the same rules.

3 min read10 sectionsUpdated

On this page

What it does

VitalRix pulls CloudWatch metrics with GetMetricData from up to 10 namespaces you choose (for example AWS/EC2, AWS/RDS, AWS/ApplicationELB). Every metric active in the last 3 hours is pulled, up to 500 per pull, every few minutes at a 60-second (detailed) or 300-second (basic, default) period. The metrics can then be used on dashboards and in alert rules.

Set it up

  1. Create a read-only IAM user. With only cloudwatch:ListMetrics and cloudwatch:GetMetricData, and create an access key for it.
  2. Add it in VitalRix. Settings → Integrations → AWS CloudWatch: access key ID, secret access key, region and namespaces.
  3. Choose the period. 300 seconds for basic monitoring, 60 for detailed monitoring.
  4. Build on it. Add the metrics to dashboards and alert rules.

Credentials are stored encrypted and secret fields are never shown again after saving. Use the test button before relying on it: chat tools and webhooks receive a sample message, while paging, SMS and ticketing integrations check the credentials without paging anyone or creating anything.

IAM policy

json
{
  "Version": "2012-10-17",
  "Statement": [{ "Effect": "Allow", "Action": ["cloudwatch:ListMetrics", "cloudwatch:GetMetricData"], "Resource": "*" }]
}

Namespaces to start with

NamespaceCovers
AWS/EC2Instance CPU, status checks, network
AWS/RDSDatabase CPU, memory, storage, connections, replica lag
AWS/ApplicationELBLoad balancer 5xx, response time, healthy hosts
AWS/SQSQueue depth and age of oldest message
AWS/LambdaErrors, throttles, duration, concurrency
AWS/ECSService CPU and memory utilization

Namespaces worth importing first

NamespaceMetricsUse
AWS/EC2CPUUtilization, StatusCheckFailedSaturation and failed instances
AWS/RDSCPUUtilization, DatabaseConnections, FreeStorageSpace, ReplicaLagDatabase health
AWS/ApplicationELBHTTPCode_Target_5XX_Count, TargetResponseTime, UnHealthyHostCountErrors and latency at the edge
AWS/LambdaErrors, Throttles, Duration, ConcurrentExecutionsFunction failures and limits
AWS/SQSApproximateNumberOfMessagesVisible, ApproximateAgeOfOldestMessageBacklog and stuck consumers

Tips

  • Use a read-only IAM key limited to cloudwatch:GetMetricData and cloudwatch:ListMetrics.
  • Pick up to ten namespaces you will alert on; each extra namespace adds API calls and cost on the AWS side.
  • Watch the age of the oldest message, not only the queue length: a short queue that never drains is stuck. See AWS monitoring and AWS Lambda monitoring.

Frequently asked questions

Can VitalRix change anything in my AWS account?

No. The recommended IAM policy allows only reading metrics.

Does it pull logs?

No, metrics only. Send logs to VitalRix through the logs API or a log shipper.

Check it now, free

Connect AWS CloudWatch in a few minutes

Create a free account, add a monitor and connect your tools. No credit card needed.