Fixed metrics and health path so that they are reachable in Kubernetes

This commit is contained in:
dankito 2024-03-19 22:48:51 +01:00
parent a0b1b10749
commit 1979356fdc
1 changed files with 14 additions and 5 deletions

View File

@ -24,9 +24,20 @@ quarkus.native.enable-https-url-handler=true
quarkus.native.enable-all-security-services=true
# Metrics and Health
# so that on server endpoints like /openapi, /swagger-ui, /health can be reached under /epcqrcode (under /q/ it's not reachable on server)
quarkus.http.non-application-root-path=/epcqrcode
# Kubernetes / Prometheus won't find endpoints under /q/health, /q/metrics, ..., so remove /q (= Quarkus default sub path) from path
quarkus.micrometer.export.prometheus.path=/metrics
quarkus.smallrye-health.root-path=/health
quarkus.smallrye-health.ui.always-include=true
# OpenAPI and Swagger-UI
# so that in Kubernetes Swagger-UI, Health UI, ... can be reached under /k7s (under /q/ it's not reachable via ingress)
quarkus.http.root-path=/k7s
quarkus.http.non-application-root-path=${quarkus.http.root-path}
# OpenAPI and Swagger-UI
@ -40,6 +51,4 @@ quarkus.smallrye-openapi.info-version=1.0.0
quarkus.smallrye-openapi.info-description=REST API to generate EPC QR codes (also marketed as GiroCode, scan2Code, ...)
quarkus.smallrye-openapi.info-contact-email=dev@codinux.net
quarkus.smallrye-openapi.info-contact-name=codinux GmbH & Co. KG
quarkus.smallrye-openapi.info-contact-url=https://codinux.net/
quarkus.smallrye-health.ui.always-include=true
quarkus.smallrye-openapi.info-contact-url=https://codinux.net/