Repository navigation
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.endpointhttp.prometheus.openTelemetry.headershttp.prometheus.openTelemetry.intervalhttp.prometheus.openTelemetry.protocolhttp.prometheus.openTelemetry.resourceAttributeshttp.prometheus.openTelemetry.serviceInstanceIdhttp.prometheus.openTelemetry.serviceNamehttp.prometheus.openTelemetry.serviceNamespacehttp.prometheus.openTelemetry.serviceVersionhttp.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.