From 1c40211c14c5ac0b1f767e540e43f91292017e18 Mon Sep 17 00:00:00 2001 From: "M.-Leander Reimer" Date: Mon, 2 Dec 2024 22:28:12 +0100 Subject: [PATCH] Added metrics and health. --- openai-chat-service/build.gradle | 7 ++++++- .../src/main/resources/application.properties | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/openai-chat-service/build.gradle b/openai-chat-service/build.gradle index 2f20893..5c236e9 100644 --- a/openai-chat-service/build.gradle +++ b/openai-chat-service/build.gradle @@ -12,10 +12,15 @@ dependencies { implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}") implementation 'io.quarkus:quarkus-rest' + + implementation 'io.quarkus:quarkus-smallrye-health' + implementation 'io.quarkus:quarkus-smallrye-metrics' + implementation 'io.quarkiverse.langchain4j:quarkus-langchain4j-core:0.22.0' implementation 'io.quarkiverse.langchain4j:quarkus-langchain4j-openai:0.22.0' + implementation 'io.quarkus:quarkus-arc' - + testImplementation 'io.quarkus:quarkus-junit5' testImplementation 'io.rest-assured:rest-assured' } diff --git a/openai-chat-service/src/main/resources/application.properties b/openai-chat-service/src/main/resources/application.properties index d7aefd6..883f7c9 100644 --- a/openai-chat-service/src/main/resources/application.properties +++ b/openai-chat-service/src/main/resources/application.properties @@ -5,3 +5,5 @@ quarkus.langchain4j.openai.log-requests=true quarkus.langchain4j.openai.log-responses=true quarkus.langchain4j.timeout=60s + +quarkus.management.enabled=true \ No newline at end of file