How to Configure Observability
This guide explains how to observe Lemline in operation: metrics, health checks, logs, lifecycle events and the dashboard.
When to Configure Observability
Set up observability when you:
run Lemline in a shared or production environment
need to know whether runners are healthy and keeping up
investigate failed or slow workflows
keep a history of workflow instances
Observability Components
Component | Where | Configuration |
|---|---|---|
Metrics |
|
|
Health checks |
| none |
Logs | standard output |
|
Lifecycle events | lifecycle events topic or queue | messaging configuration |
Lifecycle analytics | analytics database table |
|
Dashboard | through the gRPC gateway |
|
Lemline does not include distributed tracing (OpenTelemetry) or alerting; use your monitoring stack for alerts.
Metrics
lemline listen and lemline gateway start serve Prometheus metrics. Change the port with lemline.metrics.port or --metrics-port, and the path with lemline.metrics.path:
Lemline metrics describe message processing per channel, with the prefixes lemline_messaging_commands, lemline_messaging_events, lemline_messaging_cloudevents and lemline_analytics:
Metric (suffix) | Type | Description |
|---|---|---|
| Gauge | Messages currently being processed |
| Counter | Messages received |
| Counter | Messages decoded, or rejected |
| Timer | Decoding time |
| Counter | Messages processed, or failed (tagged with |
| Timer | Processing time |
| Counter | Outgoing messages encoded, or failed |
| Timer | Encoding time |
| Counter | Broker acknowledgements |
| Counter | Messages received for a namespace the runner does not serve |
Most counters are tagged with workflow_name and workflow_version. The gateway adds lemline_gateway_start_inactive_namespace_total, counted when an instance is started in a namespace with no recent runner activity. JVM, HTTP server and connection pool metrics from Quarkus are exposed as well.
Prometheus Integration
Health Checks
Runners expose SmallRye Health endpoints on the metrics port:
/q/health/live: liveness (worker-liveness)/q/health/ready: readiness (worker-readiness)/q/health: both
Use them as Kubernetes liveness and readiness probes.
Logging
Log Levels
The default level is ERROR. Set another level for any command:
At DEBUG level, the runner logs each task it enters with its input, and the workflow output.
Log Categories
Quarkus log properties are not read from the Lemline configuration file, which only accepts lemline.* settings. Set them as environment variables instead (or as -D system properties):
Structured Logging
Use --json to write logs as JSON, for ingestion by Loki, Elasticsearch or similar tools:
Every log line carries the workflow namespace, name, version and instance id, so you can filter the logs of one instance.
Lifecycle Events
Runners publish a CloudEvent for each workflow and task transition (org.open-workflow-specification.workflow.started.v1, ...task.completed.v1, ...workflow.faulted.v1, and so on) on the lifecycle events channel. Any consumer can read them from the broker. See Workflow Lifecycle Observability.
Lifecycle Analytics
To keep a queryable history, enable lifecycle analytics. A runner consumes the lifecycle events and stores them in PostgreSQL or a local SQLite file. The dashboard uses this data. See Lifecycle Analytics Reference for both configurations.
Dashboard
The dashboard reads definitions, instances, lifecycle events and per-definition counters through the gRPC gateway. Follow Connect the dashboard to the gateway to deploy it and verify that the browser can start and observe a workflow.
Common Issues and Solutions
Missing Metrics
Metrics are served only by long-running commands (
listen,gateway start); other commands disable the endpoint.Check the port:
lemline.metrics.port(default8080) or--metrics-port.Per-workflow counters appear only after the runner has processed a message for that workflow.
Log Volume Problems
Keep production runners at
INFOor above;DEBUGlogs task inputs.Raise the level of noisy categories only, with
QUARKUS_LOG_CATEGORY__<CATEGORY>__LEVELenvironment variables.
Best Practices
Scrape every runner and gateway with Prometheus
Use the health endpoints as liveness and readiness probes
Use JSON logs in production, and filter by instance id when investigating
Alert on
_processing_failed_totaland_foreign_namespace_totalEnable lifecycle analytics where you need an instance history
Do not log sensitive data: avoid
DEBUGlevel in production