diff --git a/build.gradle.kts b/build.gradle.kts index 886ca0f..91df802 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,6 +19,7 @@ dependencies { // implementation("org.springframework.boot:spring-boot-starter-security") // implementation("org.springframework.boot:spring-boot-starter-validation") implementation("org.springframework.boot:spring-boot-starter-web") + implementation("org.springframework.boot:spring-boot-starter-actuator") implementation("com.fasterxml.jackson.module:jackson-module-kotlin") implementation("org.jetbrains.kotlin:kotlin-reflect") implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.4.0") @@ -26,6 +27,7 @@ dependencies { developmentOnly("org.springframework.boot:spring-boot-devtools") runtimeOnly("org.mariadb.jdbc:mariadb-java-client") + runtimeOnly("io.micrometer:micrometer-registry-prometheus") testImplementation("org.springframework.boot:spring-boot-starter-test") testImplementation("org.jetbrains.kotlin:kotlin-test-junit5") diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ca57eae..1eeecf5 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -6,4 +6,10 @@ spring: driver-class-name: org.mariadb.jdbc.Driver jpa: hibernate: - ddl-auto: update \ No newline at end of file + ddl-auto: update + +management: + endpoints: + web: + exposure: + include: prometheus \ No newline at end of file