Issue
Intermittent warning during pipeline startup. The worker_millis_per_event metric fails to register but pipeline functions normally.
[org.logstash.execution.AbstractPipelineExt] Metric registration error: `worker_millis_per_event` could not be registered in namespace `[:stats, :pipelines, :logstash, :plugins, :filters, :c13c16377fd9a15e6e691284665f2da3494b42273b1fc6e37b6330fff12eb5ab, :flow]`
Observed Behavior
-
Not consistently reproducible - Occurs intermittently during startup
-
No functional impact - Pipeline processes events normally
-
Metrics not available - Pipeline stats are empty from endpoint localhost:9600/_node/stats/pipelines
{
"host": "log-transformer",
"version": "9.0.3",
"http_address": "0.0.0.0:9600",
"id": "5fbd8fxxxxxxxxxxxx5602",
"name": "log-transformer",
"ephemeral_id": "36axxxxxxxxxxxxxxxxx2348a7",
"snapshot": false,
"status": "unknown",
"pipeline": {
"workers": 2,
"batch_size": 2048,
"batch_delay": 50
},
"pipelines": {}
} -
Self-resolving: Logstash process restart with same configuration succeeds without error. No warning message and stats are also available in
/_node/stats/pipelinesendpoint.
Versions
- Logstash: 9.0.3
- JRuby: 9.4.9.0
- JVM: OpenJDK17
Questions
-
Is this a known race condition during pipeline initialization?
-
Any recommended configuration to prevent this?
Logs
Full startup logs attached - Logstash Logs - Metrics registration error · GitHub