Skip to main content
XenonStack

Deployment Automation

XenonStack Insights AWS Observability: CloudWatch, AMP and Grafana

| Published | Updated

AWS Observability: CloudWatch, AMP and Grafana
15:10
AWS observability stack: workloads feed CloudWatch and Amazon Managed Service for Prometheus, visualised in Amazon Managed Grafana

Key takeaway

  • Combine Amazon CloudWatch, Amazon Managed Service for Prometheus and Amazon Managed Grafana for one view of AWS metrics and logs. Steps, use cases, FAQs.

AWS observability with CloudWatch, Amazon Managed Service for Prometheus (AMP) and Amazon Managed Grafana means keeping CloudWatch as the source of AWS-native metrics and logs, adding AMP for Prometheus-format metrics, and using Grafana to query and visualise all of them in one place. Each service keeps its own job, and Grafana is the layer that brings them together.

This guide is for cloud, DevOps and platform engineers who already run workloads on AWS and want richer dashboards or Prometheus-compatible metrics without running the monitoring servers themselves. It covers what each service does, how the pieces connect, which use cases fit, how AI agents change the work, and what to do first. For the wider picture, see our guides to observability and AIOps and observability-driven development.

What does each service do?

The AWS documentation describes the three services in distinct terms. CloudWatch monitors AWS resources and the applications you run on AWS in real time. Amazon Managed Service for Prometheus is described as a serverless, Prometheus-compatible monitoring service for container metrics. Amazon Managed Grafana is a fully managed data visualisation service for querying, correlating and visualising operational metrics, logs and traces from multiple sources.

ServiceMain roleWhat it gives you
Amazon CloudWatchCollects metrics and logs from AWS services and your applicationsMetrics, log groups and streams, alarms against thresholds, dashboards, Logs Insights queries
Amazon Managed Service for PrometheusStores and queries Prometheus-format container metricsThe open-source Prometheus data model and PromQL, with AWS managing ingestion, storage and querying at scale
Amazon Managed GrafanaVisualises and correlates data from many sourcesIsolated Grafana workspaces, built-in AWS data sources including CloudWatch and AMP, and single sign-on through SAML 2.0 or AWS IAM Identity Center

When is CloudWatch alone not enough?

CloudWatch already offers metrics, logs, alarms and dashboards, and it can ingest OpenTelemetry data through native OTLP endpoints. You usually add AMP and Grafana for three reasons: your teams already use Prometheus metrics and PromQL, your containers run on Amazon EKS or self-managed Kubernetes, or you want one dashboard that mixes CloudWatch, Prometheus and other data sources. If none of those apply, CloudWatch on its own may be enough, and the extra services only add cost and moving parts.

A note on retention. AMP stores metrics for 150 days by default and lets you extend that to a maximum of 1095 days, which is three years, according to the AMP documentation. Check the retention and pricing pages for every service before you design around them, because both can change.

How do the pieces connect?

The flow is simple. CloudWatch keeps collecting AWS-native data. Prometheus-format metrics from your containers go into AMP. Grafana reads from both, because the Grafana documentation lists CloudWatch and AMP as built-in AWS data sources. Follow these steps.

Two-column diagram. Data collection: CloudWatch, AMP workspace, ingestion, retention. Visualise and act: Grafana workspace, data sources, dashboards, alerts.
  1. Create an AMP workspace in the AWS console, CLI or infrastructure-as-code tool of your choice.
  2. Send metrics to it. One documented route is a standalone Prometheus agent that scrapes your cluster and forwards samples to AMP through remote write, signed with SigV4. The AMP user guide lists other ingestion options.
  3. Create an Amazon Managed Grafana workspace and connect your identity provider through SAML 2.0 or AWS IAM Identity Center.
  4. Add data sources. Add CloudWatch and AMP, then any third-party sources you need. Setup steps are on the data source pages of the Grafana user guide.
  5. Build dashboards and alerts. Use PromQL for Prometheus metrics and CloudWatch queries for AWS metrics, and keep alarm thresholds close to the symptoms users feel.
  6. Review and prune. Remove unused panels and metrics so ingestion and storage costs stay predictable.

Which use cases fit this stack?

Use caseWhat you look atWhere the data comes from
Microservice performanceRequest rate, errors and latency per servicePrometheus metrics in AMP, or CloudWatch Application Signals
Serverless and managed servicesFunction and database healthCloudWatch metrics reported automatically by AWS services
TroubleshootingMetrics beside the logs from the same time windowCloudWatch Logs and Logs Insights next to AMP metrics in one Grafana dashboard
Capacity and cost reviewsUtilisation trends across clusters and accountsCloudWatch and AMP, charted together
Shared dashboardsReliability views for product and customer teamsGrafana workspaces with access controlled through your identity provider

Release pipelines benefit too, because the same dashboards can show whether a new version is healthy. See our notes on AWS services for blue-green deployments, and the observability for Kubernetes and serverless use case.

What do you need before you start?

  • An AWS account with permissions to create AMP and Grafana workspaces.
  • Workloads already running on AWS, ideally containers on Amazon EKS or self-managed Kubernetes if you plan to use AMP.
  • An identity provider that supports SAML 2.0, or AWS IAM Identity Center, for Grafana sign-in.
  • Working knowledge of CloudWatch, Prometheus and Grafana concepts.

How do AI agents change observability on AWS?

Dashboards show you what is happening, and people still decide what to do next. AI agents can take on the repetitive part: reading alerts, pulling the related metrics and logs, checking recent changes and proposing or running a response within limits you set. That only works if the telemetry is well labelled, the alert rules are sensible and every automated action is logged. ElixirClaw is XenonStack's AI agents computing platform. Start with read-only investigation tasks and widen permissions only as trust is earned. Related reading: data observability.

What should you do first?

  1. List the five services whose outages hurt most and the signals that show their health.
  2. Decide which signals stay in CloudWatch and which need Prometheus metrics.
  3. Stand up one AMP workspace and one Grafana workspace for a single team.
  4. Build one dashboard and two symptom-based alerts, then review them after a month.
  5. Write down who owns each alert and what action it should trigger.

To map one decision your agents make from alerts, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is the difference between CloudWatch and Amazon Managed Grafana?

CloudWatch collects and stores metrics and logs from AWS resources and applications and can raise alarms. Amazon Managed Grafana is a visualisation service that queries CloudWatch, AMP and other sources so you can build shared dashboards.

Do I need Amazon Managed Service for Prometheus?

Not always. AMP fits teams that use Prometheus metrics and PromQL, especially for containers on Amazon EKS or self-managed Kubernetes. If CloudWatch metrics and dashboards meet your needs, you can skip it.

How long does AMP keep metrics?

According to the AMP documentation, metrics are stored for 150 days by default, and you can configure retention up to a maximum of 1095 days.

Can Grafana show CloudWatch and Prometheus data on one dashboard?

Yes. The Grafana documentation lists Amazon CloudWatch and Amazon Managed Service for Prometheus as built-in data sources, so panels from both can sit on the same dashboard.

How can AI agents help with AWS monitoring?

Agents can triage alerts, gather related metrics and logs and suggest or perform a response within set limits. They depend on clean telemetry and clear alert rules, so begin with read-only tasks.

Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue