AWS Managed Prometheus and Grafana

Neill Turner
2 min readMay 17, 2021

--

With kubernetes…..

Overview

Previously one needed to install a complete Prometheus stack using the kube-prometheus-stack helm chart (previously called prometheus-operator) inside Kubernetes and manage the amount of data. With AWS Managed Prometheus AWS manages the data for you.

It is headless so there is no Prometheus web interface to the AWS Managed Prometheus. You still needs Prometheus software installed in Kubernetes to forward the data to AWS Managed Prometheus.

Create Managed Prometheus workspace

Use terraform to create a Managed Prometheus workspace in the AWS account:

resource "aws_prometheus_workspace" "my-platform" {
alias = "my-platform"
}

Ingest Prometheus metrics to the workspace

Deploy a Prometheus server to the AWS EKS to forward Prometheus metrics to Managed Prometheus. Use chart https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus.

See the Flux V2 example https://github.com/neillturner/flux-examples/tree/main/prometheus

Query your Prometheus metrics

Create a Managed Grafana workspace in AWS Console (at time of writing Terraform support for Managed Grafana is still in development).

Follow https://aws.amazon.com/blogs/mt/amazon-managed-grafana-getting-started/

  • Create a new workspace
  • Create a new user
  • Connect to the Managed Prometheus
  • Explore the metrics and add dashboards

References

https://aws.amazon.com/blogs/mt/amazon-managed-grafana-getting-started/

keywords: AWS, Managed, Prometheus, Grafana, Flux, helm, metrics,

--

--

Neill Turner

I'm a Devops Consultant with broad experience with the cloud and plenty of experience with AWS