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
+12 -4
View File
@@ -62,6 +62,12 @@ variable "enable_alerting_rules" {
default = true
}
variable "enable_recording_rules" {
description = "Enables or disables Managed Prometheus recording rules"
type = bool
default = true
}
variable "enable_dashboards" {
description = "Enables or disables curated dashboards"
type = bool
@@ -217,13 +223,15 @@ variable "enable_java" {
variable "java_config" {
description = "Configuration object for Java/JMX monitoring"
type = object({
enable_alerting_rules = bool
scrape_sample_limit = number
enable_alerting_rules = bool
enable_recording_rules = bool
scrape_sample_limit = number
})
default = {
enable_alerting_rules = true
scrape_sample_limit = 1000
enable_alerting_rules = true
enable_recording_rules = true
scrape_sample_limit = 1000
}
}