diff --git a/build.gradle b/build.gradle
index f10d70e..ee91a56 100644
--- a/build.gradle
+++ b/build.gradle
@@ -48,6 +48,9 @@ dependencies {
runtimeOnly 'org.postgresql:postgresql'
runtimeOnly 'com.h2database:h2'
+ // Metrics
+ runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
+
// Logging
implementation 'net.logstash.logback:logstash-logback-encoder:7.4'
diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml
index 85201cf..af4a01d 100644
--- a/src/main/resources/application-prod.yml
+++ b/src/main/resources/application-prod.yml
@@ -32,10 +32,14 @@ management:
endpoints:
web:
exposure:
- include: "health"
+ include: "health,prometheus"
endpoint:
health:
show-details: never
+ metrics:
+ tags:
+ application: opic-practice
+ env: production
logging:
file:
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
index f2e1259..8fb454b 100644
--- a/src/main/resources/logback-spring.xml
+++ b/src/main/resources/logback-spring.xml
@@ -2,7 +2,7 @@
-
+
${LOG_PATH}/${LOG_FILE_NAME}.log