mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-09 00:09:43 +00:00
Existing Cluster with the AWS Observability accelerator base module and Infrastructure monitoring
This example demonstrates how to use the AWS Observability Accelerator Terraform module with Infrastructure monitoring enabled. The current example deploys the AWS Distro for OpenTelemetry Operator for Amazon EKS with its requirements and make use of existing Managed Service for Prometheus and Amazon Managed Grafana workspaces.
It also uses the infrastructure monitoring, one of our workloads modules
to provide an existing EKS cluster with an OpenTelemetry collector,
curated Grafana dashboards, Prometheus alerting and recording rules with multiple
configuration options.
⚠️ Grafana API Key
Prerequisites
- EKS cluster
- Prometheus
- Grafana
Deploy
terraform apply
Requirements
| Name | Version |
|---|---|
| grafana | 1.25.0 |
Providers
| Name | Version |
|---|---|
| aws | n/a |
Modules
| Name | Source | Version |
|---|---|---|
| eks_observability_accelerator | ../../ | n/a |
| workloads_infra | ../../modules/workloads/infra | n/a |
Resources
| Name | Type |
|---|---|
| aws_eks_cluster.this | data source |
| aws_eks_cluster_auth.this | data source |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| aws_region | AWS Region | string |
n/a | yes |
| eks_cluster_id | EKS Cluster Id | string |
n/a | yes |
| grafana_api_key | API key for authorizing the Grafana provider to make changes to Amazon Managed Grafana | string |
"" |
no |
| grafana_endpoint | Grafana endpoint | string |
null |
no |
| managed_grafana_workspace_id | n/a | string |
"" |
no |
| managed_prometheus_endpoint | n/a | string |
"" |
no |
| managed_prometheus_region | n/a | string |
"" |
no |
| managed_prometheus_workspace_id | n/a | string |
"" |
no |
Outputs
| Name | Description |
|---|---|
| aws_region | AWS Region |
| eks_cluster_id | EKS Cluster Id |
| eks_cluster_version | n/a |
| prometheus_endpoint | n/a |
| prometheus_id | n/a |