summaryrefslogtreecommitdiffstats
path: root/src/test/resources/application-test.properties
diff options
context:
space:
mode:
authorsuresh.charan <suresh.charan@amdocs.com>2021-12-15 05:23:01 -0500
committersuresh.charan <suresh.charan@amdocs.com>2021-12-15 05:23:01 -0500
commit6c006a13328f6eb388d6cbd0ac3323f3462b3343 (patch)
tree37047bb16fb26cd7e7001f72ddfcfffa7f3b4a31 /src/test/resources/application-test.properties
parent0f940df172f04ad5261b2443b296b3ab58faf02c (diff)
[AAI] Expose relevant key metrics for monitoring via prometheus
The Key metrics are available via endpoints: /actuator/prometheus /actuator/info /actuator/health Issue-ID: AAI-3415 Signed-off-by: Suresh Charan <suresh.charan@amdocs.com> Change-Id: I5760095973c7f3d58a3770e221dee1c3ca9d5370
Diffstat (limited to 'src/test/resources/application-test.properties')
-rw-r--r--src/test/resources/application-test.properties6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/resources/application-test.properties b/src/test/resources/application-test.properties
index d245a53..5ac9491 100644
--- a/src/test/resources/application-test.properties
+++ b/src/test/resources/application-test.properties
@@ -73,3 +73,9 @@ schema.service.versions.endpoint=versions
# Location of the cadi properties file should be specified here
aaf.cadi.file=${server.local.startpath}/cadi.properties
+
+#To expose the Prometheus scraping endpoint in unit test
+management.server.port=0
+management.endpoints.enabled-by-default=true
+management.endpoints.web.exposure.include=info, health, loggers, prometheus
+management.metrics.web.server.auto-time-requests=false