Skip to content

Commit

Permalink
Update cross cluster examples with additional options (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonclay7 authored Nov 14, 2023
1 parent 1905343 commit 20ae144
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/eks-cross-account-with-central-amp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ module "eks_monitoring_one" {
enable_nginx = true
enable_node_exporter = true

# Additional dashboards
enable_apiserver_monitoring = true
enable_adotcollector_metrics = true

# Set to false for cross-cluster observability
enable_alerting_rules = false
enable_recording_rules = false
Expand Down Expand Up @@ -76,6 +80,10 @@ module "eks_monitoring_two" {
enable_dashboards = false
enable_node_exporter = true

# Additional dashboards
enable_apiserver_monitoring = false
enable_adotcollector_metrics = false

# Set to false for cross-cluster observability
enable_alerting_rules = false
enable_recording_rules = false
Expand Down
8 changes: 8 additions & 0 deletions examples/eks-multicluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ module "eks_cluster_1_monitoring" {
enable_alerting_rules = true
enable_recording_rules = true

# Additional dashboards
enable_apiserver_monitoring = true
enable_adotcollector_metrics = true

grafana_api_key = var.grafana_api_key
managed_prometheus_workspace_id = module.aws_observability_accelerator.managed_prometheus_workspace_id
managed_prometheus_workspace_endpoint = module.aws_observability_accelerator.managed_prometheus_workspace_endpoint
Expand Down Expand Up @@ -65,6 +69,10 @@ module "eks_cluster_2_monitoring" {
enable_alerting_rules = false
enable_recording_rules = false

# Disable additional dashboards
enable_apiserver_monitoring = false
enable_adotcollector_metrics = false

managed_prometheus_workspace_id = module.aws_observability_accelerator.managed_prometheus_workspace_id
managed_prometheus_workspace_endpoint = module.aws_observability_accelerator.managed_prometheus_workspace_endpoint
managed_prometheus_workspace_region = module.aws_observability_accelerator.managed_prometheus_workspace_region
Expand Down

0 comments on commit 20ae144

Please sign in to comment.