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