From 4958cbc7949fca016a4ee34550cdf51130d9a275 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 26 Jun 2024 17:10:07 +1000 Subject: [PATCH] update ports --- kubernetes/infrastructure/prometheus/app/deployment.yaml | 2 +- kubernetes/infrastructure/prometheus/app/service.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kubernetes/infrastructure/prometheus/app/deployment.yaml b/kubernetes/infrastructure/prometheus/app/deployment.yaml index 1d71219..cd3fa46 100644 --- a/kubernetes/infrastructure/prometheus/app/deployment.yaml +++ b/kubernetes/infrastructure/prometheus/app/deployment.yaml @@ -26,7 +26,7 @@ spec: - "--config.file=/etc/prometheus/prometheus.yaml" - "--storage.tsdb.path=/prometheus/" ports: - - containerPort: 9999 + - containerPort: 9090 resources: requests: cpu: 500m diff --git a/kubernetes/infrastructure/prometheus/app/service.yaml b/kubernetes/infrastructure/prometheus/app/service.yaml index 3079b83..44826ff 100644 --- a/kubernetes/infrastructure/prometheus/app/service.yaml +++ b/kubernetes/infrastructure/prometheus/app/service.yaml @@ -5,6 +5,7 @@ metadata: namespace: prometheus annotations: prometheus.io/scrape: 'true' + prometheus.io/path: '/data/metrics' prometheus.io/port: '9999' spec: selector: @@ -12,4 +13,6 @@ spec: type: ClusterIP ports: - port: 9999 - targetPort: 9999 \ No newline at end of file + targetPort: 9090 + protocol: TCP + name: http \ No newline at end of file