Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add additional metrics #164

Merged
merged 12 commits into from
Sep 3, 2024
2 changes: 2 additions & 0 deletions gradle/modules.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ com.lmax.disruptor=com.lmax:disruptor
io.helidon.webserver=io.helidon.webserver:helidon-webserver
io.helidon.webserver.grpc=io.helidon.webserver:helidon-webserver-grpc
io.helidon.webserver.testing.junit5=io.helidon.webserver.testing.junit5:helidon-webserver-testing-junit5

io.helidon.logging=io.helidon.logging:helidon-logging-jul
org.antlr.antlr4.runtime=org.antlr:antlr4-runtime
com.google.common=com.google.guava:guava

Expand Down
2 changes: 2 additions & 0 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ mainModuleInfo {
annotationProcessor("com.google.auto.service.processor")
runtimeOnly("com.swirlds.config.impl")
runtimeOnly("org.apache.logging.log4j.slf4j2.impl")
runtimeOnly("io.helidon.logging")
}

testModuleInfo {
annotationProcessor("dagger.compiler")
requires("org.junit.jupiter.api")
requires("org.mockito")
requires("org.mockito.junit.jupiter")
Expand Down
3 changes: 3 additions & 0 deletions server/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ COPY --from=distributions server-${VERSION}.tar .
# Extract the TAR file
RUN tar -xvf server-${VERSION}.tar

# Copy the logging properties file
COPY logging.properties logging.properties

# RUN the bin script for starting the server
ENTRYPOINT ["/bin/bash", "-c", "/app/server-${VERSION}/bin/server"]
32 changes: 32 additions & 0 deletions server/docker/logging.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Log Level Values
#
# SEVERE: indicates a critical error or failure
# WARNING: warns of potential issues or errors
# INFO: reports normal operational information
# CONFIG: provides configuration-related information
# FINE: provides detailed debugging information
# FINER: provides finer-grained debugging information
# FINEST: provides the most detailed debugging information

# Set the default logging level
.level=INFO

# Helidon loggers
io.helidon.webserver.level=SEVERE
io.helidon.config.level=SEVERE
io.helidon.security.level=INFO
io.helidon.common.level=INFO

# Configure the app log level
#com.hedera.block.level=FINE
#com.hedera.block.server.level=FINE

# Configure specific loggers
#com.hedera.block.server.mediator.LiveStreamMediatorImpl.level=FINE
#com.hedera.block.server.persistence.storage.write.BlockAsDirWriter.level=FINE
#com.hedera.block.server.producer.ProducerBlockItemObserver.level=FINE

# Console handler configuration
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
Loading
Loading