diff --git a/kustomize/base/flais.yaml b/kustomize/base/flais.yaml index 4cce75c..52bc16b 100644 --- a/kustomize/base/flais.yaml +++ b/kustomize/base/flais.yaml @@ -37,3 +37,9 @@ spec: name: fint-environment - configMapRef: name: fint-kontroll-usercatalog-config + + observability: + metrics: + enabled: true + port: "8080" + path: '/beta/fintlabs-no/actuator/prometheus' diff --git a/kustomize/overlays/api/afk-no/kustomization.yaml b/kustomize/overlays/api/afk-no/kustomization.yaml index 52f9efe..d923f2f 100644 --- a/kustomize/overlays/api/afk-no/kustomization.yaml +++ b/kustomize/overlays/api/afk-no/kustomization.yaml @@ -37,6 +37,9 @@ patches: - op: replace path: "/spec/url/basePath" value: "/afk-no" + - op: replace + path: "/spec/observability/metrics/path" + value: "/afk-no/actuator/prometheus" - op: add path: "/spec/resources" value: diff --git a/kustomize/overlays/api/bfk-no/kustomization.yaml b/kustomize/overlays/api/bfk-no/kustomization.yaml index b6cd25b..3216d68 100644 --- a/kustomize/overlays/api/bfk-no/kustomization.yaml +++ b/kustomize/overlays/api/bfk-no/kustomization.yaml @@ -37,6 +37,9 @@ patches: - op: replace path: "/spec/url/basePath" value: "/bfk-no" + - op: replace + path: "/spec/observability/metrics/path" + value: "/bfk-no/actuator/prometheus" - op: add path: "/spec/resources" value: diff --git a/kustomize/overlays/api/ofk-no/kustomization.yaml b/kustomize/overlays/api/ofk-no/kustomization.yaml index 4571555..791411d 100644 --- a/kustomize/overlays/api/ofk-no/kustomization.yaml +++ b/kustomize/overlays/api/ofk-no/kustomization.yaml @@ -34,6 +34,9 @@ patches: - op: replace path: "/spec/url/basePath" value: "/ofk-no" + - op: replace + path: "/spec/observability/metrics/path" + value: "/ofk-no/actuator/prometheus" - op: add path: "/spec/resources" value: diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 8a555b0..b42e796 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -35,6 +35,12 @@ logging: root: INFO org.apache.kafka: INFO +management: + endpoints: + web: + exposure: + include: "prometheus,health,info" +