From fdfa6fd711f411c58b9175223c05141cea0598fe Mon Sep 17 00:00:00 2001 From: chgl Date: Sun, 1 May 2022 21:48:18 +0200 Subject: [PATCH] Expose Prometheus metrics (#355) --- pom.xml | 7 +++++++ src/main/resources/application.yaml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index fc2346b..6a69b1b 100644 --- a/pom.xml +++ b/pom.xml @@ -317,6 +317,13 @@ ${spring_boot_version} + + + io.micrometer + micrometer-registry-prometheus + 1.8.5 + + com.zaxxer HikariCP diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 95c7c5a..45c3e13 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -4,7 +4,7 @@ management: endpoints: web: exposure: - include: "health" + include: "health,prometheus" spring: main: allow-circular-references: true