From f2ad8b8a72df3402571af1cc7e32bc17e0b090cc Mon Sep 17 00:00:00 2001 From: tschneid Date: Mon, 23 Dec 2024 14:43:21 -0600 Subject: [PATCH] scrape over http --- .../clc-state-metrics.servicemonitor.yaml | 17 +++++++++++++++++ .../templates/metrics-service.yaml | 6 +++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 acm/deploy/helm/clc-state-metrics/templates/clc-state-metrics.servicemonitor.yaml diff --git a/acm/deploy/helm/clc-state-metrics/templates/clc-state-metrics.servicemonitor.yaml b/acm/deploy/helm/clc-state-metrics/templates/clc-state-metrics.servicemonitor.yaml new file mode 100644 index 000000000..8e596e211 --- /dev/null +++ b/acm/deploy/helm/clc-state-metrics/templates/clc-state-metrics.servicemonitor.yaml @@ -0,0 +1,17 @@ +apiVersion: azmonitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: clusterlifecycle-state-metrics-v2 + namespace: {{ .Values.global.namespace }} + labels: + clc-app: clusterlifecycle-state-metrics-v2 +spec: + selector: + matchLabels: + clc-app: clusterlifecycle-state-metrics-v2 + namespaceSelector: + matchNames: + - {{ .Values.global.namespace }} + endpoints: + - port: http + scheme: http diff --git a/acm/deploy/helm/clc-state-metrics/templates/metrics-service.yaml b/acm/deploy/helm/clc-state-metrics/templates/metrics-service.yaml index f158ce20c..99242b040 100644 --- a/acm/deploy/helm/clc-state-metrics/templates/metrics-service.yaml +++ b/acm/deploy/helm/clc-state-metrics/templates/metrics-service.yaml @@ -12,9 +12,9 @@ metadata: spec: type: ClusterIP ports: - - name: https - port: 8443 - targetPort: 8443 + - name: http + port: 8080 + targetPort: 8080 protocol: TCP selector: app: clusterlifecycle-state-metrics-v2