Skip to content

Commit

Permalink
Merge pull request #496 from opexdev/fix-health-timeout
Browse files Browse the repository at this point in the history
Disable PrometheusHealthExtension
  • Loading branch information
Marchosiax authored Jan 5, 2025
2 parents 47f2ebc + 6921b13 commit 55e823e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions api/api-app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55e823e

Please sign in to comment.