Skip to content

Commit 2458aa8

Browse files
committed
SIVA-1037 Add metrics endpoint for Prometheus
1 parent dc548a7 commit 2458aa8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

siva-parent/siva-monitoring/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
<artifactId>jcabi-manifests</artifactId>
5050
<version>${jcabi-manifests.version}</version>
5151
</dependency>
52+
<dependency>
53+
<groupId>io.micrometer</groupId>
54+
<artifactId>micrometer-registry-prometheus</artifactId>
55+
</dependency>
5256

5357
<dependency>
5458
<groupId>org.projectlombok</groupId>

siva-parent/siva-webapp/src/main/resources/application.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ management:
88
exposure:
99
include:
1010
- health
11+
- prometheus
1112
# TODO: When Kubernetes is live, remove custom heartbeat endpoint if it is not used
1213
- heartbeat
1314
- version

0 commit comments

Comments
 (0)