Skip to content

Commit e5b8d84

Browse files
authored
Prometheus (#22)
* Export prometheus metrics * Implement prometheus
1 parent 39d4941 commit e5b8d84

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ dependencies {
3434
implementation("org.springframework.boot:spring-boot-starter-actuator")
3535
implementation("org.flywaydb:flyway-core")
3636
implementation("org.postgresql:postgresql")
37+
implementation("io.micrometer:micrometer-registry-prometheus")
3738
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
3839
implementation("net.logstash.logback:logstash-logback-encoder:$logstashLogbackEncoderVersion")
3940

Diff for: src/main/resources/application.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ management:
2525
health:
2626
livenessstate.enabled: true
2727
readinessState.enabled: true
28+
prometheus:
29+
metrics.export.enabled: true
2830

2931
logging.config: "classpath:logback.xml"

0 commit comments

Comments
 (0)