Skip to content

Commit

Permalink
add metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
pulledtim committed Jun 5, 2023
1 parent 3f1d0b8 commit 9e7f968
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
33 changes: 23 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<artifactId>commons-codec</artifactId>
<version>${commons-codec.version}</version>
</dependency>

<!-- micronaut -->
<dependency>
<groupId>io.micronaut</groupId>
Expand Down Expand Up @@ -138,15 +139,6 @@
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
</dependency>
<!-- logging -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback-classic.version}</version>
<scope>runtime</scope>
</dependency>


<dependency>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>svm</artifactId>
Expand Down Expand Up @@ -197,6 +189,28 @@
<scope>compile</scope>
</dependency>

<!-- Metering -->
<dependency>
<groupId>io.micronaut.micrometer</groupId>
<artifactId>micronaut-micrometer-core</artifactId>
</dependency>
<dependency>
<groupId>io.micronaut.micrometer</groupId>
<artifactId>micronaut-micrometer-registry-statsd</artifactId>
</dependency>
<dependency>
<groupId>io.micronaut.micrometer</groupId>
<artifactId>micronaut-micrometer-registry-prometheus</artifactId>
</dependency>

<!-- logging -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback-classic.version}</version>
<scope>runtime</scope>
</dependency>

<!-- mn copy -->
<dependency>
<groupId>io.micronaut.cache</groupId>
Expand Down Expand Up @@ -548,7 +562,6 @@
<!-- needs to be excluded, breaks coveralls linking -->
<exclude>**/TrustedIssuerMapperImpl*</exclude>
<exclude>**/NGSIMapperImpl*</exclude>

</excludes>
</configuration>
<executions>
Expand Down
10 changes: 10 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
micronaut:
metrics:
enabled: false
export:
prometheus:
enabled: true
step: PT1M
descriptions: true
application:
name: ${project.artifactId}
server:
Expand All @@ -22,6 +29,9 @@ micronaut:
url: http://gaia-x-orion-ld:1026
read-timeout: 30
---
endpoints:
prometheus:
sensitive: false

general:
contextUrl: "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
Expand Down

0 comments on commit 9e7f968

Please sign in to comment.