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.syncs by outcome (ok, failed), featuremeshd.registry.sync.duration (ms, by outcome and changed), featuremeshd.registry.sync.last_success (Unix seconds of the last good sync), featuremeshd.serving.definitions by kind and status, and featuremeshd.serving.definition.failures by kind and step.
  • Serving calls: featuremeshd.serving.calls, featuremeshd.serving.call.duration and featuremeshd.serving.source.failures, labelled caller = serving for a request, hook for a hook's call, view for a view's run.
  • Loggers: featuremeshd.logger.calls_dropped and featuremeshd.logger.rows ( Feature logging ).
MetricKindLabelsHolds
featuremeshd.hooks.records, .batches, .calls, .writes, .deletions, .data_errors, .trimmed, .retries, .scheduled, .deduplicatedcounterhookthe status counters, restarting from zero when the hook's definition changes
featuremeshd.hooks.stalledgaugehook1 while the hook is STALLED, else 0
featuremeshd.hooks.laggaugehook, partitionrecords behind the partition's end, at the last commit. It does not move while the hook is STALLED
featuremeshd.hooks.newest_record_timegauge, shook, partitionthe largest Kafka timestamp among the records committed
featuremeshd.hooks.queue.depth, .queue.due, .queue.oldest_due_age (s)gaugehooka scheduled hook's queue, at this replica's last check
featuremeshd.hooks.queue.drains, .queue.fires, .queue.entries_expired, .queue.entries_dropped, .queue.lease_lostcounterhookthe queue's counters
featuremeshd.hooks.sink.writes, .sink.deletionscounterhook, sinkrows written and keys removed, per sink
featuremeshd.hooks.sink.failurescounterhook, sinksink write calls that failed; the batch is retried
featuremeshd.hooks.sink.write.durationhistogram, mshook, sink, outcomeone write call: a batch's rows for one sink
featuremeshd.hooks.batch.durationhistogram, mshook, outcome (ok, retry)one attempt of a batch: its calls and its sinks, the hooks ON its statement not included
featuremeshd.hooks.drain.durationhistogram, mshook, outcomeone drain: every due entry under the lease, every batch
featuremeshd.views.runscounterview, outcome (ok, failed, busy)runs; busy when another replica held the view
featuremeshd.views.rows, .views.deletionscounterviewrows landed, keys removed
featuremeshd.views.retries, .views.lease_lostcounterviewfailed attempts retried; runs another holder took over
featuremeshd.views.run.durationhistogram, msview, outcomea run from its lease to its end, retries included
featuremeshd.views.last_success_timegauge, sviewwhen 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