featuremeshd metrics
featuremeshd exports OpenTelemetry metrics to the OTLP endpoint of its configuration, telemetry.metrics.exporters or the shared telemetry.exporters ( Configure featuremeshd ):
telemetry:
metrics:
exporters: # or telemetry.exporters, shared with traces and logs
otlp:
enabled: true
endpoint: "http://otel-collector:4317"
protocol: "grpc" yaml
- Labels are the hook or view, the partition, the sink and the outcome: never a key, a value or a statement.
- Per replica. Each replica exports its own. Sum the counters over replicas. The queue gauges are the same queue seen by each replica: take their maximum, not their sum.
- The registry sync, per instance:
featuremeshd.registry.sync.healthy(1 when the last sync succeeded, 0 when it failed),featuremeshd.registry.syncsbyoutcome(ok,failed),featuremeshd.registry.sync.duration(ms, byoutcomeandchanged),featuremeshd.registry.sync.last_success(Unix seconds of the last good sync),featuremeshd.serving.definitionsbykindandstatus, andfeaturemeshd.serving.definition.failuresbykindandstep. - Serving calls:
featuremeshd.serving.calls,featuremeshd.serving.call.durationandfeaturemeshd.serving.source.failures, labelledcaller=servingfor a request,hookfor a hook's call,viewfor a view's run. - Loggers:
featuremeshd.logger.calls_droppedandfeaturemeshd.logger.rows( Feature logging ).
| Metric | Kind | Labels | Holds |
|---|---|---|---|
featuremeshd.hooks.records, .batches, .calls, .writes, .deletions, .data_errors, .trimmed, .retries, .scheduled, .deduplicated | counter | hook | the status counters, restarting from zero when the hook's definition changes |
featuremeshd.hooks.stalled | gauge | hook | 1 while the hook is STALLED, else 0 |
featuremeshd.hooks.lag | gauge | hook, partition | records behind the partition's end, at the last commit. It does not move while the hook is STALLED |
featuremeshd.hooks.newest_record_time | gauge, s | hook, partition | the largest Kafka timestamp among the records committed |
featuremeshd.hooks.queue.depth, .queue.due, .queue.oldest_due_age (s) | gauge | hook | a scheduled hook's queue, at this replica's last check |
featuremeshd.hooks.queue.drains, .queue.fires, .queue.entries_expired, .queue.entries_dropped, .queue.lease_lost | counter | hook | the queue's counters |
featuremeshd.hooks.sink.writes, .sink.deletions | counter | hook, sink | rows written and keys removed, per sink |
featuremeshd.hooks.sink.failures | counter | hook, sink | sink write calls that failed; the batch is retried |
featuremeshd.hooks.sink.write.duration | histogram, ms | hook, sink, outcome | one write call: a batch's rows for one sink |
featuremeshd.hooks.batch.duration | histogram, ms | hook, outcome (ok, retry) | one attempt of a batch: its calls and its sinks, the hooks ON its statement not included |
featuremeshd.hooks.drain.duration | histogram, ms | hook, outcome | one drain: every due entry under the lease, every batch |
featuremeshd.views.runs | counter | view, outcome (ok, failed, busy) | runs; busy when another replica held the view |
featuremeshd.views.rows, .views.deletions | counter | view | rows landed, keys removed |
featuremeshd.views.retries, .views.lease_lost | counter | view | failed attempts retried; runs another holder took over |
featuremeshd.views.run.duration | histogram, ms | view, outcome | a run from its lease to its end, retries included |
featuremeshd.views.last_success_time | gauge, s | view | when this featuremeshd last landed a run of the view (Unix time). Absent until it has, and after a restart |
The status columns these counters mirror are in Status and writes .
Related
- Monitor and recover : what to alert on.
- Delivery and failures : what the counters count.
- Configure featuremeshd : the exporters.
On this page