diff --git a/api/api-app/src/main/kotlin/co/nilin/opex/api/app/utils/PrometheusHealthExtension.kt b/api/api-app/src/main/kotlin/co/nilin/opex/api/app/utils/PrometheusHealthExtension.kt index 9f3fbc902..913bf2cd8 100644 --- a/api/api-app/src/main/kotlin/co/nilin/opex/api/app/utils/PrometheusHealthExtension.kt +++ b/api/api-app/src/main/kotlin/co/nilin/opex/api/app/utils/PrometheusHealthExtension.kt @@ -8,7 +8,7 @@ import org.springframework.boot.actuate.health.SystemHealth import org.springframework.scheduling.annotation.Scheduled import org.springframework.stereotype.Component -@Component +//@Component class PrometheusHealthExtension( private val registry: MeterRegistry, private val endpoint: HealthEndpoint @@ -42,7 +42,7 @@ class PrometheusHealthExtension( .register(registry) } - @Scheduled(initialDelay = 1000, fixedDelay = 5000) + //@Scheduled(initialDelay = 1000, fixedDelay = 5000) fun updateHealth() { try { val health = endpoint.health() as SystemHealth diff --git a/api/api-app/src/main/resources/application.yml b/api/api-app/src/main/resources/application.yml index f8bc03cfe..3184c2285 100644 --- a/api/api-app/src/main/resources/application.yml +++ b/api/api-app/src/main/resources/application.yml @@ -93,11 +93,8 @@ logbook: - DELETE logging: level: - co.nilin: debug + co.nilin: INFO org.zalando.logbook: TRACE - root: debug - web: debug - sql: debug app: accountant: url: lb://opex-accountant