mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-09 00:09:43 +00:00
Make creation of Grafana Data Source and Folder configurable (#145)
* Made the cluster variable visible in dashboards * Made the repo reusable with multiple EKS clusters * Relabled the input variable from create_grafana_data_source to create_prometheus_data_source
This commit is contained in:
committed by
GitHub
parent
cd28d9975a
commit
caeebe0e1a
+2
-2
@@ -30,10 +30,10 @@ output "managed_grafana_workspace_id" {
|
||||
|
||||
output "grafana_dashboards_folder_id" {
|
||||
description = "Grafana folder ID for automatic dashboards. Required by workload modules"
|
||||
value = grafana_folder.this.id
|
||||
value = var.create_dashboard_folder ? grafana_folder.this[0].id : ""
|
||||
}
|
||||
|
||||
output "grafana_prometheus_datasource_test" {
|
||||
description = "Grafana save & test URL for Amazon Managed Prometheus workspace"
|
||||
value = "${local.amg_ws_endpoint}/datasources/edit/${grafana_data_source.amp.uid}"
|
||||
value = var.create_prometheus_data_source ? "${local.amg_ws_endpoint}/datasources/edit/${grafana_data_source.amp[0].uid}" : ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user