diff --git a/meta/domain-monitor/apps.tf b/meta/domain-monitor/apps.tf index b61d6a6..c3af2b4 100644 --- a/meta/domain-monitor/apps.tf +++ b/meta/domain-monitor/apps.tf @@ -87,7 +87,6 @@ locals { volume = merge(lookup(lookup(var.alerts-containers, "storage", {}), "volume", {}), local.global-volume) }) }) - nodeExporter = { for k, v in var.node-exporter : k => v if k!="enable" } nodeExporter = merge(local.global,{ for k, v in var.node-exporter : k => v if !contains(["enable","storage","backups"],k) },{ backups = merge(lookup(var.node-exporter, "backups", {}), local.global-backups) storage = merge({ for k, v in lookup(var.node-exporter, "storage", {}) : k => v if !contains(["volume"],k) }, { diff --git a/meta/domain-monitor/index.yaml b/meta/domain-monitor/index.yaml index 69ecad7..608996c 100644 --- a/meta/domain-monitor/index.yaml +++ b/meta/domain-monitor/index.yaml @@ -6,57 +6,6 @@ metadata: name: domain-monitor description: null options: - prometheus: - default: - enable: true - examples: - - enable: true - properties: - enable: - default: true - type: boolean - type: object - x-vynil-category: monitor - x-vynil-package: prometheus - domain: - default: your-company - examples: - - your-company - type: string - app_group: - default: infra - examples: - - infra - type: string - language: - default: fr_FR - examples: - - fr_FR - type: string - node-exporter: - default: - enable: true - examples: - - enable: true - properties: - enable: - default: true - type: boolean - type: object - x-vynil-category: monitor - x-vynil-package: node-exporter - kube-state-metrics: - default: - enable: true - examples: - - enable: true - properties: - enable: - default: true - type: boolean - type: object - x-vynil-category: monitor - x-vynil-package: kube-state-metrics alerts-containers: default: enable: true @@ -69,33 +18,43 @@ options: type: object x-vynil-category: monitor x-vynil-package: alerts-containers - monitor-control-plan: + loki: default: - enable: false + enable: true examples: - - enable: false + - enable: true properties: enable: - default: false + default: true type: boolean type: object x-vynil-category: monitor - x-vynil-package: monitor-control-plan + x-vynil-package: loki domain_name: default: your-company.com examples: - your-company.com type: string - sso_vynil: - default: true + timezone: + default: Europe/Paris examples: - - true - type: boolean - ingress_class: - default: traefik - examples: - - traefik + - Europe/Paris type: string + distributions: + default: + core: core + domain: domain + examples: + - core: core + domain: domain + properties: + core: + default: core + type: string + domain: + default: domain + type: string + type: object grafana: default: enable: true @@ -108,7 +67,7 @@ options: type: object x-vynil-category: monitor x-vynil-package: grafana - alertmanager: + node-exporter: default: enable: true examples: @@ -119,7 +78,7 @@ options: type: boolean type: object x-vynil-category: monitor - x-vynil-package: alertmanager + x-vynil-package: node-exporter promtail: default: enable: true @@ -132,12 +91,7 @@ options: type: object x-vynil-category: monitor x-vynil-package: promtail - timezone: - default: Europe/Paris - examples: - - Europe/Paris - type: string - dashboards-minimal: + alertmanager: default: enable: true examples: @@ -148,7 +102,51 @@ options: type: boolean type: object x-vynil-category: monitor - x-vynil-package: dashboards-minimal + x-vynil-package: alertmanager + language: + default: fr_FR + examples: + - fr_FR + type: string + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + domain: + default: your-company + examples: + - your-company + type: string + app_group: + default: infra + examples: + - infra + type: string + alerts-core: + default: + enable: true + examples: + - enable: true + properties: + enable: + default: true + type: boolean + type: object + x-vynil-category: monitor + x-vynil-package: alerts-core + kube-state-metrics: + default: + enable: true + examples: + - enable: true + properties: + enable: + default: true + type: boolean + type: object + x-vynil-category: monitor + x-vynil-package: kube-state-metrics storage: default: volume: @@ -172,71 +170,11 @@ options: type: string type: object type: object - dashboards-namespace: - default: - enable: true + ingress_class: + default: traefik examples: - - enable: true - properties: - enable: - default: true - type: boolean - type: object - x-vynil-category: monitor - x-vynil-package: dashboards-namespace - loki: - default: - enable: true - examples: - - enable: true - properties: - enable: - default: true - type: boolean - type: object - x-vynil-category: monitor - x-vynil-package: loki - alerts-core: - default: - enable: true - examples: - - enable: true - properties: - enable: - default: true - type: boolean - type: object - x-vynil-category: monitor - x-vynil-package: alerts-core - dashboards-workload: - default: - enable: true - examples: - - enable: true - properties: - enable: - default: true - type: boolean - type: object - x-vynil-category: monitor - x-vynil-package: dashboards-workload - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod + - traefik type: string - dashboards-cluster: - default: - enable: true - examples: - - enable: true - properties: - enable: - default: true - type: boolean - type: object - x-vynil-category: monitor - x-vynil-package: dashboards-cluster backups: default: enable: false @@ -277,21 +215,83 @@ options: default: false type: boolean type: object - distributions: + dashboards-cluster: default: - core: core - domain: domain + enable: true examples: - - core: core - domain: domain + - enable: true properties: - core: - default: core - type: string - domain: - default: domain - type: string + enable: + default: true + type: boolean type: object + x-vynil-category: monitor + x-vynil-package: dashboards-cluster + prometheus: + default: + enable: true + examples: + - enable: true + properties: + enable: + default: true + type: boolean + type: object + x-vynil-category: monitor + x-vynil-package: prometheus + dashboards-minimal: + default: + enable: true + examples: + - enable: true + properties: + enable: + default: true + type: boolean + type: object + x-vynil-category: monitor + x-vynil-package: dashboards-minimal + dashboards-namespace: + default: + enable: true + examples: + - enable: true + properties: + enable: + default: true + type: boolean + type: object + x-vynil-category: monitor + x-vynil-package: dashboards-namespace + dashboards-workload: + default: + enable: true + examples: + - enable: true + properties: + enable: + default: true + type: boolean + type: object + x-vynil-category: monitor + x-vynil-package: dashboards-workload + monitor-control-plan: + default: + enable: false + examples: + - enable: false + properties: + enable: + default: false + type: boolean + type: object + x-vynil-category: monitor + x-vynil-package: monitor-control-plan + sso_vynil: + default: true + examples: + - true + type: boolean dependencies: [] providers: kubernetes: true