-
Notifications
You must be signed in to change notification settings - Fork 11
Dashboard
LogHub provides a simple dashboard. The home page provides a few simple metrics that shows the current traffic. It’s
activated when the property http.port
is set.
If the jar loghub-jolokia.jar
from the module loghub-jolokia is installed, LogHub will export internal JMX metrics
using Jolokia. The usual Jolokia URL are mapped under /jolokia
.
It’s configured with the following properties.
http.jolokia.policyLocation
If the jar loghub-prometheus.jar
from the module loghub-prometheus is installed, LogHub will export internal JMX metrics
using Prometheus’ client_java.
If the property http.prometheus.withExporter
is set to true, a Prometheus exporter is created and listen at the
/prometheus
end point.
If the property http.prometheus.withOpenTelemetry
is set to true, metrics will be pushed using the OTLP protocol. It’s
configured with the following properties, they are explain at
Exporter OpenTelemetry Properties
http.prometheus.openTelemetry.endpoint
http.prometheus.openTelemetry.headers
http.prometheus.openTelemetry.interval
http.prometheus.openTelemetry.protocol
http.prometheus.openTelemetry.resourceAttributes
http.prometheus.openTelemetry.serviceInstanceId
http.prometheus.openTelemetry.serviceName
http.prometheus.openTelemetry.serviceNamespace
http.prometheus.openTelemetry.serviceVersion
http.prometheus.openTelemetry.timeoutSeconds
The properties http.prometheus.openTelemetry.resourceAttributes
and http.prometheus.openTelemetry.headers
are
declared using LogHub’s map, not the format described in Prometheus’ description.
To export basic JVM metrics, the property http.prometheus.withJvmMetrics
must be set to true.