Skip to content

Commit

Permalink
activation prometheus (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
Numero7 authored Feb 10, 2025
2 parents 8296f39 + ccdb32e commit 54bac7b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/suggestions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.5.0</version>
</dependency>

</dependencies>
<build>
<plugins>
Expand Down
5 changes: 5 additions & 0 deletions app/suggestions/suggestions-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>

<!-- For Maven -->

</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ server.error.include-stacktrace=always

spring.devtools.restart.enabled=false

management.endpoints.web.exposure.include=*

swaggerUrl=${SUGGESTIONS_SWAGGER_URL:http://localhost:8004}

spring.jpa.hibernate.ddl-auto=update

mps.suggestions.dynamic_parameter_service.enabled=false

management.metrics.export.prometheus.enabled=true
management.endpoint.prometheus.enabled=true
management.endpoints.web.exposure.include=*

spring.config.import=optional:secrets.properties

mps.suggestions.dynamic_parameter_service.enabled=false


0 comments on commit 54bac7b

Please sign in to comment.