diff --git a/k8s/release/deployment.yaml b/k8s/release/deployment.yaml index 9ec41eff..22f816f0 100644 --- a/k8s/release/deployment.yaml +++ b/k8s/release/deployment.yaml @@ -12,6 +12,10 @@ spec: metadata: labels: app: spring-boot-app + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "8080" + prometheus.io/path: /actuator/prometheus spec: containers: - name: spring-boot-app diff --git a/k8s/release/monitoring.yaml b/k8s/release/monitoring.yaml deleted file mode 100644 index 246b9940..00000000 --- a/k8s/release/monitoring.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: spring-boot-app-monitor - namespace: monitoring -spec: - selector: - matchLabels: - app: spring-boot-app - namespaceSelector: - matchNames: - - grass-diary-backend-release - endpoints: - - port: 80 - path: /actuator/prometheus - interval: 15s