From 78a89c3ef9e976df188ec51b3f6b752ed59d113b Mon Sep 17 00:00:00 2001 From: "Florian Rusch (ZF Friedrichshafen AG)" Date: Tue, 6 Jun 2023 08:12:04 +0200 Subject: [PATCH] feat: Provide prometheus based metrics --- backend/pom.xml | 13 ++++++++++--- backend/src/main/resources/application.yml | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/backend/pom.xml b/backend/pom.xml index 2ed59b2f..3c4832aa 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -111,14 +111,21 @@ org.springframework.boot spring-boot-starter-oauth2-resource-server + + org.springframework.security + spring-security-test + test + + + org.springframework.boot spring-boot-starter-actuator - org.springframework.security - spring-security-test - test + io.micrometer + micrometer-registry-prometheus + runtime diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index a9e42ec6..ae980070 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -87,7 +87,7 @@ contact_url: '@project.url@' licence_url: '@licence_url@' organization_name: '@project.organization.name@' version: '@project.version@' - + management: endpoint: health: @@ -98,4 +98,4 @@ management: endpoints: web: exposure: - include: health,info + include: health,info,prometheus