aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredyta <edyta.krukowska@nokia.com>2020-05-07 07:43:18 +0200
committerZebek Bogumil <bogumil.zebek@nokia.com>2020-05-13 08:36:46 +0200
commit540de931d7c0234759d0d6caedf7aaf3d7b86fad (patch)
tree80c6919e00a2817eb4f452f56e50327352ede077
parent14b6866f877d8c1efd49c924a732f470fa376793 (diff)
Activate prometheus metrics for perf tests - pom.xml fix
Issue-ID: DCAEGEN2-608 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Iaa0f32e99ab46e8e4646109d15c63513b8a269f4
-rw-r--r--Changelog.md8
-rw-r--r--pom.xml30
-rw-r--r--src/main/resources/application.properties4
-rw-r--r--version.properties4
4 files changed, 42 insertions, 4 deletions
diff --git a/Changelog.md b/Changelog.md
new file mode 100644
index 00000000..c750f13a
--- /dev/null
+++ b/Changelog.md
@@ -0,0 +1,8 @@
+# Change Log
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](http://keepachangelog.com/)
+and this project adheres to [Semantic Versioning](http://semver.org/).
+
+## [1.6.0] - 13/05/2020
+ - [DCAEGEN2-608](https://jira.onap.org/browse/DCAEGEN2-608) - Expose Prometheus API for performance tests
diff --git a/pom.xml b/pom.xml
index e826ea8b..3b7280b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
</parent>
<groupId>org.onap.dcaegen2.collectors.ves</groupId>
<artifactId>VESCollector</artifactId>
- <version>1.5.4-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
<name>dcaegen2-collectors-ves</name>
<description>VESCollector</description>
<properties>
@@ -50,6 +50,8 @@
${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
<crypt-password.version>1.3.5</crypt-password.version>
+ <micrometer.version>1.4.2</micrometer.version>
+ <spring.version>2.2.2.RELEASE</spring.version>
</properties>
<build>
<pluginManagement>
@@ -234,6 +236,30 @@
</build>
<profiles>
<profile>
+ <id>buildForPerfTests</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <dependencies>
+ <!-- Libraries related with performance tests-->
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>io.micrometer</groupId>
+ <artifactId>micrometer-registry-prometheus</artifactId>
+ <version>${micrometer.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>io.micrometer</groupId>
+ <artifactId>micrometer-core</artifactId>
+ <version>${micrometer.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
<id>with-system-proxy</id>
<build>
<plugins>
@@ -285,7 +311,7 @@
<!-- Import dependency management from Spring Boot -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
- <version>2.2.2.RELEASE</version>
+ <version>${spring.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
new file mode 100644
index 00000000..48ba86d4
--- /dev/null
+++ b/src/main/resources/application.properties
@@ -0,0 +1,4 @@
+management.endpoint.metrics.enabled=true
+management.endpoints.web.exposure.include=metrics, prometheus
+management.endpoint.prometheus.enabled=true
+management.metrics.export.prometheus.enabled=true
diff --git a/version.properties b/version.properties
index b53fce2d..eabef1f2 100644
--- a/version.properties
+++ b/version.properties
@@ -1,6 +1,6 @@
major=1
-minor=5
-patch=4
+minor=6
+patch=0
base_version=${major}.${minor}.${patch}
release_version=${base_version}
snapshot_version=${base_version}-SNAPSHOT