diff --git a/k8s/deployment-dev.yaml b/k8s/deployment-dev.yaml index 5a4d337..adb65a3 100644 --- a/k8s/deployment-dev.yaml +++ b/k8s/deployment-dev.yaml @@ -11,7 +11,7 @@ spec: # maxUnavailable: 1 # maxSurge: 1 minReadySeconds: 5 - replicas: 1 + replicas: 2 selector: matchLabels: app: catsnewyear-dev @@ -21,6 +21,10 @@ spec: labels: app: catsnewyear-dev env: development + annotations: + prometheus.io/scrape: 'true' + prometheus.io/path: /metrics + prometheus.io/port: '3000' spec: containers: - name: catsnewyear diff --git a/k8s/deployment-prod.yaml b/k8s/deployment-prod.yaml index 7031da8..02cb7ee 100644 --- a/k8s/deployment-prod.yaml +++ b/k8s/deployment-prod.yaml @@ -21,6 +21,10 @@ spec: labels: app: catsnewyear env: production + annotations: + prometheus.io/scrape: 'true' + prometheus.io/path: /metrics + prometheus.io/port: '3000' spec: containers: - name: catsnewyear