diff --git a/pom.xml b/pom.xml
index dc2ad2504a5fccdf9aa06fabbacf204cc7919ec0..ec4426acfddd43850d45468de77150eca31d57fa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -118,7 +118,6 @@
1.4.198
-
org.apache.commons
@@ -126,7 +125,19 @@
3.9
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+ 1.5.22.RELEASE
+
+
+
+ io.micrometer
+ micrometer-registry-prometheus
+ 1.1.3
+
diff --git a/src/main/java/com/nynja/walletservice/config/WebConfig.java b/src/main/java/com/nynja/walletservice/config/WebConfig.java
index 0296e5765691c011f07be3089fd23178c1eea590..8983408df66a9c50040222ea6c8b60c5e9797461 100644
--- a/src/main/java/com/nynja/walletservice/config/WebConfig.java
+++ b/src/main/java/com/nynja/walletservice/config/WebConfig.java
@@ -1,5 +1,6 @@
package com.nynja.walletservice.config;
+
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
@@ -15,6 +16,8 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {
+
+
@Bean
public CORSFilter corsFilter() {
CorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
diff --git a/src/main/java/com/nynja/walletservice/controller/EthereumController.java b/src/main/java/com/nynja/walletservice/controller/EthereumController.java
index 0d2e25100ddca2ce8a47036c86e648acc232c86f..e4a6ca3b1a24bd127a85626026f411fbe81e9890 100644
--- a/src/main/java/com/nynja/walletservice/controller/EthereumController.java
+++ b/src/main/java/com/nynja/walletservice/controller/EthereumController.java
@@ -44,7 +44,6 @@ public class EthereumController {
this.conf = conf;
}
-
/* @GetMapping(API_VERSION + "/version")
public CompletableFuture> checkClientVersion(
@NotBlank(message = CHAIN_ID_VALIDATION_MESSAGE) @RequestParam(defaultValue = "four") String chainId
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 1353888a6fe4c7ede8c4806b08300663d6e377e0..bb81c48795c3f25c1427368b013f25a0987cb397 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -54,4 +54,22 @@ message-broker:
topic: "/transfer-"
bitmart:
- uri: "wss://openws.bitmart.com"
\ No newline at end of file
+ uri: "wss://openws.bitmart.com"
+
+# SPRING BOOT ACTUATOR PROPERTIES
+management:
+ endpoint:
+ health:
+ show-details: always
+ metrics:
+ enabled: true
+ prometheus:
+ enabled: true
+ endpoints:
+ web:
+ exposure:
+ include: 'prometheus, metrics, health, info, loggers'
+ metrics:
+ export:
+ prometheus:
+ enabled: true