Skip to content

Commit

Permalink
FKS-1097: Add prometheus endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcecodeas committed Dec 20, 2024
1 parent 049a3e2 commit f338649
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kustomize/base/flais.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 3 additions & 0 deletions kustomize/overlays/api/afk-no/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions kustomize/overlays/api/bfk-no/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions kustomize/overlays/api/ofk-no/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ logging:
root: INFO
org.apache.kafka: INFO

management:
endpoints:
web:
exposure:
include: "prometheus,health,info"




0 comments on commit f338649

Please sign in to comment.