Add application metrics in the catalog backend
A new endpoint was introduced sdc2/rest/actuator/prometheus in the
catalog backend, that returns application metrics in a format
consumable by prometheus, using the micrometer library.
Change-Id: I03542e1c1a9b8b12d4e00f86e5b02c597740934b
Issue-ID: SDC-3957
Signed-off-by: andre.schmid <andre.schmid@est.tech>
diff --git a/catalog-be/pom.xml b/catalog-be/pom.xml
index 9df0805..2d74490 100644
--- a/catalog-be/pom.xml
+++ b/catalog-be/pom.xml
@@ -19,6 +19,7 @@
<maven-dependency-plugin.version>3.2.0</maven-dependency-plugin.version>
<replacer.plugin.version>1.5.3</replacer.plugin.version>
<ui.version>${project.version}</ui.version>
+ <micrometer.version>1.8.4</micrometer.version>
</properties>
<dependencies>
@@ -170,6 +171,12 @@
</exclusions>
</dependency>
+ <dependency>
+ <groupId>io.micrometer</groupId>
+ <artifactId>micrometer-registry-prometheus</artifactId>
+ <version>${micrometer.version}</version>
+ </dependency>
+
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>