From 27c21fe9ac4f108cdadc5772b347081c7a43d362 Mon Sep 17 00:00:00 2001 From: Sergey Matvienko Date: Fri, 26 May 2023 18:03:40 +0200 Subject: [PATCH] METRICS_ENDPOINTS_EXPOSE:info for tb-vc-executor.yml to be able to expose prometheus metrics --- msa/vc-executor/src/main/resources/tb-vc-executor.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/msa/vc-executor/src/main/resources/tb-vc-executor.yml b/msa/vc-executor/src/main/resources/tb-vc-executor.yml index 352f94e091..ca495c678f 100644 --- a/msa/vc-executor/src/main/resources/tb-vc-executor.yml +++ b/msa/vc-executor/src/main/resources/tb-vc-executor.yml @@ -192,6 +192,13 @@ metrics: # Metrics percentiles returned by actuator for timer metrics. List of double values (divided by ,). percentiles: "${METRICS_TIMER_PERCENTILES:0.5}" +management: + endpoints: + web: + exposure: + # Expose metrics endpoint (use value 'prometheus' to enable prometheus metrics). + include: '${METRICS_ENDPOINTS_EXPOSE:info}' + service: type: "${TB_SERVICE_TYPE:tb-vc-executor}" # Unique id for this service (autogenerated if empty)