Add kubeprom collector

This commit is contained in:
Rodrigue Koffi
2022-08-04 14:37:46 +02:00
parent 5d01879036
commit a8fc12f7b7
14 changed files with 2114 additions and 34 deletions
+58
View File
@@ -111,3 +111,61 @@ variable "tags" {
type = map(string)
default = {}
}
variable "enable_infra_metrics" {
type = bool
default = false
}
variable "infra_metrics_config" {
type = object({
helm_config = map(any)
enable_kube_state_metrics = bool
kms_create_namespace = bool
ksm_k8s_namespace = string
ksm_helm_chart_name = string
ksm_helm_chart_version = string
ksm_helm_release_name = string
ksm_helm_repo_url = string
ksm_helm_settings = map(string)
ksm_helm_values = map(any)
enable_node_exporter = bool
ne_create_namespace = bool
ne_k8s_namespace = string
ne_helm_chart_name = string
ne_helm_chart_version = string
ne_helm_release_name = string
ne_helm_repo_url = string
ne_helm_settings = map(string)
ne_helm_values = map(any)
})
default = null
# default = {
# enable_kube_state_metrics = true
# enable_node_exporter = true
# helm_config = {}
# kms_create_namespace = true
# ksm_helm_chart_name = "kube-state-metrics"
# ksm_helm_chart_version = "4.9.2"
# ksm_helm_release_name = "kube-state-metrics"
# ksm_helm_repo_url = "https://prometheus-community.github.io/helm-charts"
# ksm_helm_settings = {}
# ksm_helm_values = {}
# ksm_k8s_namespace = "kube-system"
# ne_create_namespace = true
# ne_k8s_namespace = "prometheus-node-exporter"
# ne_helm_chart_name = "prometheus-node-exporter"
# ne_helm_chart_version = "2.0.3"
# ne_helm_release_name = "prometheus-node-exporter"
# ne_helm_repo_url = "https://prometheus-community.github.io/helm-charts"
# ne_helm_settings = {}
# ne_helm_values = {}
# }
}