Monitoring setup with nevisAppliance without OpenTelemetry Collector
The monitoring nevisAppliance comes with an already configured OpenTelemetry agent which can be used for logging Product Analytics metrics for the components.
See Software installation in the nevisAppliance documentation for image installation instructions.
Setup
During generation, nevisAdmin4 creates the otel.properties
file which should look similar to this example:
otel.service.name = <service-name>
otel.traces.exporter = none
otel.metrics.exporter = none
otel.logs.exporter = none
For Java based components, to use the OpenTelemetry agent, nevisAdmin4 extends the JAVA_OPS of the relevant component with:
JAVA_OPTS=(
"-javaagent:/opt/agent/opentelemetry-javaagent.jar"
"-Dotel.javaagent.logging=application"
"-Dotel.javaagent.configuration-file=/var/opt/<service-name>/default/conf/otel.properties"
"-Dotel.resource.attributes=service.version=<version>,service.instance.id=<intanceId>"
)
nevisAdmin4 uses the already existing /opt/agent/opentelemetry-javaagent.jar
file.
info
The ProductAnalytics
metrics are logged in every 24 hours to the application's standard log file.