From fd02f6bd3add547befb38e946dcdf316746a7161 Mon Sep 17 00:00:00 2001 From: Soumya Bavirisetti <54733882+soumyabavirisetti@users.noreply.github.com> Date: Mon, 3 Feb 2025 16:57:58 +0530 Subject: [PATCH] Update prometheus-eks.yaml cluster_name and region_name not specified in the yaml. So if customers use this yaml, they'll face the below error : ~~~~ 2025/02/03 11:00:06 E! Failed to generate TOML configuration validation content: [Under path : /agent/ruleRegion/ | Error : Region info is missing for mode: onPrem Under path : /logs/metrics_collected/prometheus/ | Error : ClusterName is not defined] 2025/02/03 11:00:06 Under path : /agent/ruleRegion/ | Error : Region info is missing for mode: onPrem 2025/02/03 11:00:06 Under path : /logs/metrics_collected/prometheus/ | Error : ClusterName is not defined ~~~~ --- .../service/cwagent-prometheus/prometheus-eks.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/k8s-deployment-manifest-templates/deployment-mode/service/cwagent-prometheus/prometheus-eks.yaml b/k8s-deployment-manifest-templates/deployment-mode/service/cwagent-prometheus/prometheus-eks.yaml index dce602d..e747b49 100644 --- a/k8s-deployment-manifest-templates/deployment-mode/service/cwagent-prometheus/prometheus-eks.yaml +++ b/k8s-deployment-manifest-templates/deployment-mode/service/cwagent-prometheus/prometheus-eks.yaml @@ -13,9 +13,14 @@ data: # cwagent json config cwagentconfig.json: | { + "agent": { + "region": "{{region_name}}" + }, "logs": { "metrics_collected": { "prometheus": { + "cluster_name": "{{cluster_name}}", + "log_group_name": "/aws/containerinsights/{{cluster_name}}/prometheus", "prometheus_config_path": "/etc/prometheusconfig/prometheus.yaml", "emf_processor": { "metric_declaration": [