diff --git a/build.gradle b/build.gradle index b56826c..fed60d4 100644 --- a/build.gradle +++ b/build.gradle @@ -46,6 +46,7 @@ ext { set('resilienceReactorVersion', '1.6.1') set('resilienceRateLimiterVersion', '1.6.1') set('lokiLogbackAppenderVersion', '1.5.1') + set('micrometerCoreVersion', '1.12.2') } jar { @@ -71,7 +72,7 @@ dependencies { implementation "software.pando.crypto:salty-coffee:${pandoCryptoVersion}" implementation "org.apache.commons:commons-collections4:${apacheCollectionsVersion}" implementation "com.github.loki4j:loki-logback-appender:${lokiLogbackAppenderVersion}" - implementation 'org.springframework.boot:spring-boot-starter-actuator' + implementation "io.micrometer:micrometer-core:${micrometerCoreVersion}" compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' annotationProcessor "org.mapstruct:mapstruct-processor:${mapStructVersion}" diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index f925b2b..699c883 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -7,8 +7,4 @@ spring: application: callback: - url: https://rivenbot.app - -logging: - level: - root: DEBUG \ No newline at end of file + url: https://rivenbot.app \ No newline at end of file diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index 58e2e09..91dc5a3 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -1,44 +1,63 @@ - - - - http://localhost:3100/loki/api/v1/push - - - - - %-5level [%.5(${HOSTNAME})] %.10thread %logger{20} | %msg %ex - - - + + + http://localhost:3100/loki/api/v1/push + 60000 + 10000 + + + + + %-5level [%.5(${HOSTNAME})] %.10thread %logger{20} | %msg %ex + + + + + + + + + + %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n + + + + + + + http://loki:3100/loki/api/v1/push + 60000 + 10000 + + + + + %-5level [%.5(${HOSTNAME})] %.10thread %logger{20} | %msg %ex + + + true + true + + + - + + - - - - - http://rivenbot.app:3100/loki/api/v1/push - - - - - %-5level [%.5(${HOSTNAME})] %.10thread %logger{20} | %msg %ex - - - + - + +