Metrics Reference
This reference lists the metrics Lemline exposes and where to read them.
Endpoint
lemline listen and lemline gateway start serve Prometheus metrics over HTTP:
Item | Value |
|---|---|
URL |
|
Port |
|
Path |
|
Health checks are served on the same port: /q/health, /q/health/live and /q/health/ready.
Other commands (definition, instance start, config, migrate, failures replay) do not expose metrics.
Naming
Metrics are recorded with Micrometer and exported in Prometheus format. Dots become underscores, and timers are exported as _seconds_count, _seconds_sum and _seconds_max. For example:
Micrometer name | Prometheus name |
|---|---|
|
|
|
|
Message Consumer Metrics
Each consumer of a runner records the same set of metrics under its own prefix:
Prefix | Consumer |
|---|---|
| Workflow commands (workflow execution steps) |
| Workflow events (durable operations stored by the runner) |
| CloudEvents consumed for |
| Lifecycle events ingested by lifecycle analytics |
For each <prefix>:
Metric | Type | Tags | Description |
|---|---|---|---|
| Gauge | - | Messages being processed right now |
| Counter | - | Messages received |
| Counter |
| Messages decoded |
| Counter |
| Messages that could not be decoded |
| Timer | - | Time spent decoding |
| Counter |
| Messages encoded |
| Counter |
| Messages that could not be encoded |
| Timer | - | Time spent encoding |
| Counter |
| Messages processed successfully |
| Counter |
| Messages whose processing failed |
| Timer |
| Processing time, successful or not |
| Counter |
| Messages acknowledged to the broker |
| Counter |
| Acknowledgements that failed |
| Counter |
| Messages rejected to the broker |
| Counter |
| Rejections that failed |
| Counter |
| Messages received for a namespace this runner does not serve |
A rising foreign_namespace.total means messages reach a runner that is not configured for their namespace (see lemline.namespaces). Those messages are parked as failures and can be re-sent with lemline failures replay.
Gateway Metrics
Metric | Type | Tags | Description |
|---|---|---|---|
| Counter |
| Instances started in a namespace where no runner activity was recorded recently |
Platform Metrics
Micrometer also exports its standard JVM and process metrics (memory, garbage collection, threads, CPU, uptime), with names such as jvm_memory_used_bytes and process_cpu_usage.