From f7f92511621be97cfc0af48baadb20c733eed541 Mon Sep 17 00:00:00 2001 From: leila Date: Fri, 23 Sep 2022 12:31:06 -0400 Subject: Add latency metrics configurations for AAI-resources Latency metrics based on the percentiles of histogram quantile function Updated pom.xml Issue-ID: AAI-3529 Signed-off-by: leila Change-Id: Icf3fe2566d5b3068f4795a4ce7793c9812d7547b (cherry picked from commit f80844c59b994da133af38b66b3403d3231553e3) --- aai-resources/src/main/resources/application.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aai-resources/src/main/resources/application.properties b/aai-resources/src/main/resources/application.properties index 31169cd..9383b42 100644 --- a/aai-resources/src/main/resources/application.properties +++ b/aai-resources/src/main/resources/application.properties @@ -99,10 +99,12 @@ management.endpoints.enabled-by-default=true #To Enable Actuator Endpoint, you can override this in OOM Charts management.endpoints.web.exposure.include=info, health, prometheus management.metrics.web.server.auto-time-requests=false +management.metrics.distribution.percentiles-histogram[http.server.requests]=true +management.metrics.distribution.sla[http.server.requests]=20ms, 30ms, 40ms, 50ms, 60ms, 70ms, 80ms, 90ms, 100ms, 500ms, 1000ms, 5000ms, 7000ms management.metrics.tags.group_id=aai # management.metrics.tags.app_id=${info.build.artifact} # management.metrics.tags.aai_uri=${schema.uri.base.path} -#It is not advisable to use labels to store dimensions with high cardinality. +#It is not advisable to use labels to store dimensions with high cardinality. #Enable this option only for debug purposes. For more information: https://github.com/micrometer-metrics/micrometer/issues/1584 scrape.uri.metrics=false -- cgit 1.2.3-korg