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:
Vijay Chintalapati
2023-04-06 02:04:29 -07:00
committed by GitHub
parent cd28d9975a
commit caeebe0e1a
16 changed files with 58 additions and 14 deletions
+2
View File
@@ -25,6 +25,7 @@ provider "grafana" {
}
resource "grafana_data_source" "amp" {
count = var.create_prometheus_data_source ? 1 : 0
type = "prometheus"
name = local.name
is_default = true
@@ -39,5 +40,6 @@ resource "grafana_data_source" "amp" {
# dashboards
resource "grafana_folder" "this" {
count = var.create_dashboard_folder ? 1 : 0
title = "Observability Accelerator Dashboards"
}