From 3c59f7821a218223cf82f64e10b6810557d84fb9 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Thu, 29 Aug 2024 10:26:34 +0200 Subject: Enable prometheus metrics in babel Issue-ID: AAI-3980 Change-Id: I06033095928be900197cfb313964c833ea251044 Signed-off-by: Fiete Ostkamp --- pom.xml | 266 ++++++++++++++++-------------- src/main/resources/application.properties | 4 +- 2 files changed, 143 insertions(+), 127 deletions(-) diff --git a/pom.xml b/pom.xml index 1cabfcd..4f76eeb 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ --> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 @@ -79,7 +79,7 @@ 0.28.0 1.0.0 ${project.build.directory}/${project.artifactId}-${project.version}-build/ - + onap alpine 1.9.0 @@ -153,10 +153,10 @@ def userAaiBaseImage = session.userProperties['aai.base.image']; def userAaiCommonVersion = session.userProperties['aai.base.image.version']; if (userAaiCommonVersion != null) { - project.properties['aai.base.image.version'] = userAaiCommonVersion; + project.properties['aai.base.image.version'] = userAaiCommonVersion; } if (userAaiBaseImage != null) { - project.properties['aai.base.image'] = userAaiBaseImage; + project.properties['aai.base.image'] = userAaiBaseImage; } log.info 'Base image flavour: ' + project.properties['aai.base.image']; log.info 'Base image version: ' + project.properties['aai.base.image.version']; @@ -230,126 +230,140 @@ - - - org.springframework.boot - spring-boot-starter-jetty - - - org.springframework.boot - spring-boot-starter-jersey - - - org.springframework.boot - spring-boot-starter-jetty - - - org.springframework.boot - spring-boot-starter-tomcat - - - - - org.springframework.boot - spring-boot-starter-web - - - org.springframework.boot - spring-boot-starter-jetty - - - org.springframework.boot - spring-boot-starter-tomcat - - - - - org.springframework.boot - spring-boot-starter-aop - - - org.springframework.boot - spring-boot-starter-tomcat - - - - - org.onap.aai.logging-service - common-logging - - - ch.qos.logback - logback-classic - - - ch.qos.logback - logback-core - ${logback.core.version} - - - commons-codec - commons-codec - ${commons.codec.version} - - - org.apache.commons - commons-compress - ${commons.compress.version} - - - org.apache.commons - commons-lang3 - ${commons.lang3.version} - - - javax.ws.rs - javax.ws.rs-api - ${javax.ws.rs.version} - - - org.codehaus.groovy - groovy - ${groovy.version} - - - org.onap.sdc.sdc-tosca - sdc-tosca - ${sdc.tosca.version} - - - org.onap.aai - rest-client - - - - - org.springframework.boot - spring-boot-starter-test - test - - - org.onap.sdc.sdc-distribution-client - sdc-distribution-client - ${sdc.distribution.client.version} - test - - - org.hamcrest - hamcrest - 2.2 - test - - - org.junit.jupiter - junit-jupiter - 5.10.2 - test - - - org.junit.jupiter - junit-jupiter-api - test - + + + org.springframework.boot + spring-boot-starter-jetty + + + org.springframework.boot + spring-boot-starter-jersey + + + org.springframework.boot + spring-boot-starter-jetty + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-jetty + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-starter-webflux + test + + + org.springframework.boot + spring-boot-starter-aop + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-starter-actuator + + + io.micrometer + micrometer-registry-prometheus + runtime + + + org.onap.aai.logging-service + common-logging + + + ch.qos.logback + logback-classic + + + ch.qos.logback + logback-core + ${logback.core.version} + + + commons-codec + commons-codec + ${commons.codec.version} + + + org.apache.commons + commons-compress + ${commons.compress.version} + + + org.apache.commons + commons-lang3 + ${commons.lang3.version} + + + javax.ws.rs + javax.ws.rs-api + ${javax.ws.rs.version} + + + org.codehaus.groovy + groovy + ${groovy.version} + + + org.onap.sdc.sdc-tosca + sdc-tosca + ${sdc.tosca.version} + + + org.onap.aai + rest-client + + + + + org.springframework.boot + spring-boot-starter-test + test + + + org.onap.sdc.sdc-distribution-client + sdc-distribution-client + ${sdc.distribution.client.version} + test + + + org.hamcrest + hamcrest + 2.2 + test + + + org.junit.jupiter + junit-jupiter + 5.10.2 + test + + + org.junit.jupiter + junit-jupiter-api + test + org.xmlunit @@ -382,8 +396,8 @@ spring-cloud-starter-sleuth - org.springframework.cloud - spring-cloud-sleuth-zipkin + org.springframework.cloud + spring-cloud-sleuth-zipkin org.projectlombok diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index b47e4d2..6bd8991 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -16,4 +16,6 @@ spring.sleuth.messaging.jms.enabled = false spring.sleuth.trace-id128=true spring.sleuth.sampler.probability=1.0 spring.sleuth.propagation.type=w3c, b3 -spring.sleuth.supports-join=false \ No newline at end of file +spring.sleuth.supports-join=false + +management.endpoints.web.exposure.include=* -- cgit