Skip to content

Commit 76c037a

Browse files
committed
feat: add Micrometer Prometheus registry and configure metrics endpoint permissions
1 parent 24e84e7 commit 76c037a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

app/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ SPDX-License-Identifier: Apache-2.0
8080
<groupId>io.quarkus</groupId>
8181
<artifactId>quarkus-smallrye-health</artifactId>
8282
</dependency>
83+
<dependency>
84+
<groupId>io.quarkus</groupId>
85+
<artifactId>quarkus-micrometer-registry-prometheus</artifactId>
86+
</dependency>
8387

8488
<dependency>
8589
<groupId>io.quarkus</groupId>

app/src/main/resources/application.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ quarkus.http.auth.permission.deny-default.policy=deny
4242
quarkus.http.auth.permission.allow-quarkus-services.paths=/compas-scl-data-service/q/health/live,/compas-scl-data-service/q/health/ready,/compas-scl-data-service/q/openapi
4343
quarkus.http.auth.permission.allow-quarkus-services.policy=permit
4444

45+
quarkus.http.auth.permission.metrics.paths=/compas-scl-data-service/q/metrics
46+
quarkus.http.auth.permission.metrics.policy=authenticated
47+
4548
quarkus.http.auth.permission.common.paths=/compas-scl-data-service/common/v1/*
4649
quarkus.http.auth.permission.common.policy=authenticated
4750

0 commit comments

Comments
 (0)