Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ subprojects {
implementation("org.javers:javers-core:7.6.1")
implementation("org.apache.httpcomponents.client5:httpclient5:5.3")

// testing
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("io.micrometer:micrometer-core")
implementation("io.micrometer:micrometer-registry-prometheus")

testCompileOnly("org.projectlombok:lombok:1.18.32")
testAnnotationProcessor("org.projectlombok:lombok:1.18.32")
testImplementation("io.rest-assured:rest-assured:5.5.0")
Expand Down
12 changes: 11 additions & 1 deletion cf-application/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
server:
port: ${SERVER_PORT:9000}

management:
endpoints:
web:
exposure:
include: "*"
endpoint:
metrics:
enabled: true
metrics:
enable:
all: true
spring:
task:
execution:
Expand Down
8 changes: 8 additions & 0 deletions monitoring/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
scrape_configs:
- job_name: 'MyAppMetrics'
metrics_path: '/actuator/prometheus'
scrape_interval: 3s
static_configs:
- targets: ['host.docker.internal:9000']
labels:
application: 'My Spring Boot Application'
Loading