Skip to content
Snippets Groups Projects
Commit 8136fe08 authored by Alžbeta Hajná's avatar Alžbeta Hajná
Browse files

feat: module application exposed actuator - health, metrics, loggers, beans, prometheus

parent 2de1ed03
No related branches found
No related tags found
2 merge requests!54Merge develop into main,!42Resolve "Actuator"
...@@ -152,5 +152,17 @@ ...@@ -152,5 +152,17 @@
<groupId>com.github.ben-manes.caffeine</groupId> <groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId> <artifactId>caffeine</artifactId>
</dependency> </dependency>
<!-- Actuator dependency-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Prometheus dependency -->
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -11,4 +11,9 @@ spring.jpa.show-sql=true ...@@ -11,4 +11,9 @@ spring.jpa.show-sql=true
spring.jackson.property-naming-strategy=SNAKE_CASE spring.jackson.property-naming-strategy=SNAKE_CASE
spring.cache.type=NONE spring.cache.type=NONE
spring.profiles.active=dev spring.profiles.active=dev
appconfig.enablecache=false appconfig.enablecache=false
\ No newline at end of file
management.endpoints.web.exposure.include=health,metrics,loggers,beans,prometheus
management.endpoint.health.show-details=always
management.endpoint.health.show-components=always
management.endpoint.health.probes.enabled=true
\ No newline at end of file
...@@ -10,4 +10,4 @@ scrape_configs: ...@@ -10,4 +10,4 @@ scrape_configs:
- job_name: 'formula-core' - job_name: 'formula-core'
metrics_path: /actuator/prometheus metrics_path: /actuator/prometheus
static_configs: static_configs:
- targets: [host.docker.internal:8080] - targets: [host.docker.internal:8080, host.docker.internal:8081]
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment