Monitoring setup on Supported systems without OpenTelemetry Collector
Using nevisAdmin4 without OpenTelemetry Collector, Prometheus and Grafana can be used for logging Product Analytics metrics for the components.
Installation
OpenTelemetry agent
Download nevis-opentelemetry-javaagent-<version>.jar
from the Nevis portal and save it as /opt/agent/opentelemetry-javaagent.jar
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>"
)
where
service-name
: Name of the service, e.g.: nevisidmversion
: Version of the service, e.g.: 1.0intanceId
: Name of the instance, such as idm-dev
info
The ProductAnalytics
metrics are logged in every 24 hours to the application's standard log file.