diff --git a/roles/cmoa_install/files/05-imxc/templates/cloudmoa-metric-agent.yaml b/roles/cmoa_install/files/05-imxc/templates/cloudmoa-metric-agent.yaml index e3e59d3..99bef49 100755 --- a/roles/cmoa_install/files/05-imxc/templates/cloudmoa-metric-agent.yaml +++ b/roles/cmoa_install/files/05-imxc/templates/cloudmoa-metric-agent.yaml @@ -89,6 +89,17 @@ data: evaluation_interval: 5s # Evaluate rules every 15 seconds. The default is every 1 minute. scrape_configs: + # modified by dongwoo 2023-11-14 + - job_name: 'cmoa-kube-exporter' + kubernetes_sd_configs: + - role: pod + namespaces: + names: + - imxc + relabel_configs: + - source_labels: [__meta_kubernetes_pod_label_app] + action: keep + regex: cmoa-kube-exporter - job_name: 'kubernetes-kubelet' scheme: https tls_config: diff --git a/roles/cmoa_install/files/05-imxc/templates/cmoa-kube-exporter.yaml b/roles/cmoa_install/files/05-imxc/templates/cmoa-kube-exporter.yaml index 3b5047f..f03799a 100755 --- a/roles/cmoa_install/files/05-imxc/templates/cmoa-kube-exporter.yaml +++ b/roles/cmoa_install/files/05-imxc/templates/cmoa-kube-exporter.yaml @@ -16,7 +16,7 @@ spec: app: cmoa-pod-exporter spec: containers: - - image: {{ .Values.global.IMXC_IN_REGISTRY }}/cmoa-pod-exporter:{{ .Values.global.KUBE_EXPORTER_VERSION }} + - image: {{ .Values.global.IMXC_IN_REGISTRY }}/cmoa-kube-exporter:{{ .Values.global.KUBE_EXPORTER_VERSION }} name: cmoa-pod-exporter ports: - containerPort: 8080