Observability
Reeve exports telemetry and bundles no monitoring stack: there is no Prometheus, Grafana or tracing backend in the
production stack, because operators already run those. Dashboards and alert rules ship as importable files under
deploy/observability/:
| File | Content |
|---|---|
deploy/observability/grafana/dashboards/*.json |
Dashboards for Grafana 10.0 or later, including reeve-cluster.json (membership, change-log convergence, ownership and mutexes, the replica bus). They expect a Prometheus data source and tell replicas apart by the scrape target's instance label |
deploy/observability/prometheus/alerts.yml |
Alert rules: group reeve for every installation, group reeve-cluster for the cluster library's series (several of its rules need more than one replica to fire). Check them with promtool check rules deploy/observability/prometheus/alerts.yml |
The Helm chart can also bundle the dashboards as a ConfigMap and render a ServiceMonitor (Kubernetes).
Channels
The backend emits OpenTelemetry metrics and traces and can serve a Prometheus scrape endpoint. Both metric channels carry the same instruments; the choice is deployment policy, not application behaviour. A blank endpoint means that channel is off.
| Channel | Transport | Setting | Chart value | Compose variable |
|---|---|---|---|---|
| Metrics | OTLP over HTTP/protobuf | OpenTelemetry:MetricsEndpoint (empty: no OTLP metrics exporter) |
observability.metrics.endpoint |
OTEL_METRICS_ENDPOINT |
| Traces | OTLP over HTTP/protobuf | OpenTelemetry:TracesEndpoint (empty: tracing is not registered) |
observability.traces.endpoint |
OTEL_TRACES_ENDPOINT |
| Metrics | Prometheus text at GET /metrics |
Metrics:PrometheusEnabled (default false: the route is not mapped) |
metrics.prometheusEnabled |
METRICS_PROMETHEUS_ENABLED |
- Enable only the channels something consumes. Each metrics channel is its own reader with its own copy of every
stream, so running the OTLP push and
/metricstogether doubles the memory the points occupy (see stream cardinality). /metrics. WithMetrics:BearerTokenset, a scrape withoutAuthorization: Bearer <token>answers 401; unset, the endpoint is open. The chart enables the endpoint automatically whenprometheus.enabledandprometheus.serviceMonitor.enabledare both true, overriding an explicitfalse; setmetrics.prometheusEnabled: truefor another scraper. For Compose, setMETRICS_PROMETHEUS_ENABLED=truein.envand restart the backend. Do this whenever you load the shipped alert rules, which alert when backend metrics are missing. A scrape that answers 200 without a content type is turned into a failure, so a broken exporter shows as a failed scrape rather than an empty one.- Tracing is off until
OpenTelemetry:TracesEndpointis set. Until then the host does not subscribe to the ASP.NET Core, HttpClient, EF Core, Npgsql, Redis or workflow activity sources.OpenTelemetry:EnableRedisInstrumentation(defaultfalse) adds Redis client spans when tracing is on.
Runtime and ASP.NET Core metric instrumentation are always registered. A static scrape configuration:
scrape_configs:
- job_name: reeve
static_configs:
- targets: ["<api-host>:8080"]
authorization:
type: Bearer
credentials: "<token>"
Health checks
| Endpoint | Contract | Purpose |
|---|---|---|
GET /health/live |
200 text/plain Healthy |
Liveness: healthy whenever the process runs |
GET /health/ready |
200 when every ready-tagged check passes, else 503 |
Readiness: PostgreSQL, safe mode and the replica's own cluster state (a fenced, loading or not yet admitted replica fails it) |
GET /health/details |
200 application/json. Anonymous: { status, safeMode, checks[{ name, status }] }. With home.manage: also duration, safeModeReason, unresolvedSecretReferenceCount, unresolvedSecretReferencesAsOf and each check's description and duration |
Report for monitors and dashboards, including checks that do not affect readiness. A caller without home.manage gets the anonymous form, never a 401 or 403. It answers 503 on a replica in safe mode, since the safe-mode check is unhealthy there. The secret count is per replica; null means that replica's scan failed or has not completed |
Unmatched routes, a bare /health included, return an RFC 7807 application/problem+json document carrying a trace
id, not a health response.
| Check | Tag | Probe | Why that tag |
|---|---|---|---|
postgresql |
ready |
Open a connection | Nothing can be served without it |
reeve-cluster |
ready |
The cluster library's serving check and its readiness reasons, from memory | The replica serves only in the library's Serving phase; an open skip is reported in the description and never changes the status |
safe-mode |
ready |
Unhealthy while the replica runs in safe mode | A safe-mode replica leaves rotation; recovery goes through a peer or a restart |
self |
live |
None | Liveness only |
postgresql-replica |
degraded |
Open a connection to ReplicaDatabase and check pg_is_in_recovery(); healthy when none is configured |
Replica-safe reads fall back to the primary |
redis |
degraded |
Ping; Degraded on a failure, Unhealthy after three in a row |
A Redis outage must not pull every replica out of rotation at once; the realtime backplane and the session store degrade meanwhile |
discovery |
degraded |
The last discovery scan completed within twice its IntervalSeconds |
A stuck scan only delays new devices |
coordination |
degraded |
Another live replica has been present for longer than Coordination:PeerGrace while Coordination:Clustered is off |
It names a configuration error the operator fixes on every replica |
plugin-roll-fleet |
degraded |
The plugin roll's fleet configuration is usable | Plugin updates are refused until it is configured |
secret-provider-<id> |
degraded |
Authenticated provider health request | A provider outage affects references, not the whole instance |
observation-replication |
degraded, never unhealthy |
In-process state only, never Redis (details) | Without replication, plugins do what they do on a single replica |
Only ready-tagged checks affect /health/ready. Redis start-up is checked separately: the host does not start until
Redis answers PING within Redis:StartupWaitSeconds and reports version 8.4 or later.
The permission-filtered GET /api/system/status adds what a probe should not expose: the security box reports
key-ring posture, the active and oldest key-encryption-key versions and the count of key rows still wrapped by an older
version (read from envelope metadata, without decrypting rows), and the configured host CA certificates. The workloads
box reads each instance's live volume status one at a time. That is the only storage Reeve reports on: it does not
monitor the disks of its hosts, its database or its object storage, so watch those with your infrastructure monitoring.
What to alert on
Alert on /health/details, not on readiness. An anonymous monitor sees each check's status; read the descriptions
with a home.manage credential. Degraded checks never pull a pod out of rotation, so readiness alone hides them.
The reeve group
| Alert | Fires when | For | Severity |
|---|---|---|---|
HighErrorRate |
Server errors above 5 % of requests. A device command's 502 (the plugin did not carry it out) or 504 (adapter timeout) is a device outcome and is not counted; reeve_device_commands_total covers device health |
5 min | Critical |
WorkflowExecutionFailureSpike |
Automation failure rate above 10 % | 2 min | Warning |
UncaughtWorkflowErrors |
reeve_workflow_node_errors_total{caught="false"} above 0.1 per second |
5 min | Warning |
PluginUnhealthy |
reeve_plugin_errors_total above 0.1 per second |
2 min | Warning |
DbConnectionsExhausted |
pg_stat_activity_count above 80 (needs a PostgreSQL exporter) |
1 min | Critical |
BackendDown |
absent(reeve_workload_instances): the workload gauge is observed on every scrape, so it is present whenever the backend is |
2 min | Critical |
The reeve-cluster group
The reeve_cluster_* series exist on every installation, a single replica included; rules about peers, fencing a replica beside others or the replica bus have nothing to report on one node. The timings are
the cluster defaults: LeaseTtl 30 s, ReconcileTimeout 15 s, applier stall fence 45 s, ReleaseGrace 12 s, and a
library drain of up to 131 s, which starts after the member-request drain (up to 5/16 of the shutdown timeout). A
rolling deploy drains and fences one pod at a time and moves every owned kind once, so each rule either excludes a
draining pod, waits out the drain with for:, or is silenced for an hour by a replica that started or restarted (a new
instance label or a counter reset). Replicas are told apart by instance.
| Alert | Fires when | Severity |
|---|---|---|
ClusterReplicaNotServing |
A replica is outside the serving phase for 2 minutes, a draining pod excepted | Critical |
ClusterReplicaFenced |
Any fence not caused by a graceful stop (applier_stall, stuck_attempt, fatal_fault, zero_row_renewal, timeline, unanswered_activation) |
Critical |
ClusterReplicaFencedOutsideDeploy |
A fence_start fence, with the process still scraped 3 minutes later (a deploy's pod exits within its drain) |
Critical |
ClusterReplicaRejoined |
A rejoin of either decision | Critical |
ClusterCaptureDiscarded, ClusterWriteRefused |
Any increase over 15 minutes | Critical |
ClusterSkipOpen |
An open skip for 2 minutes | Critical |
ClusterApplierLagging |
The change-log head is ahead of a serving replica's generation for 45 s | Critical |
ClusterSlotRenewalLost |
A mutex renewal answers anything but renewed |
Critical |
ClusterReplicaBehindRefusals |
Requests refused with replica_behind (replica_not_serving and replica_fenced follow every deploy and are not alerted) |
Warning |
ClusterApplierAttemptsFailing |
Reconciler attempts end failed or timed_out |
Warning |
ClusterReleaseOverdue |
A release request is past ReleaseGrace for 2 minutes |
Warning |
ClusterTakeoverAtSteadyState |
Owned work changed owner and no replica started or stopped within the hour | Warning |
ClusterLeaseRenewalSlow, ClusterLeaseRenewalUnanswered |
Renewal p99 above 1 s over 30 minutes, held for 10; any unknown or not_mine outcome |
Warning |
ClusterSupersededPinsGrowing |
Pins on superseded generations above 20 and up by more than 20 in an hour, held for 30 minutes | Warning |
ClusterBusReceiveShortfall |
A replica receives under half of what the others publish, for 15 minutes, outside the hour after a restart | Warning |
ClusterWorkflowWakesLost |
Suspension wakes ending lost, dropped or failed |
Warning |
ClusterTriggerRunsDropped |
reeve_trigger_runs_dropped_total, shutting_down excepted (every deploy produces it) |
Warning |
ClusterTelemetryDedupStoreFailing |
reeve_telemetry_dedup_store_failures_total rises for 5 minutes |
Warning |
ClusterApplierLagging needs reeve_cluster_change_log_head and reeve_cluster_generation_head on the same scrape
target; the change-log head stands still while a replica is not polling, so it is checked on serving replicas only. A
replica that is gone stops reporting rather than reporting a bad phase, so pair ClusterReplicaNotServing with an up
alert on the backend target.
Worth watching beyond the shipped rules
- Any increase in
reeve_trigger_runs_dropped_total: a trigger fired and its run never ran. Withreason="queue_full", raiseAutomations:TriggerRuns:MaxConcurrentif long-sleeping automations fill every slot. - Any increase in
reeve_trigger_runs_unordered_total: a run gave up waiting for the fire queued before it (same automation,Automations:TriggerRuns:AdmissionOrderWaitSeconds) and was admitted out of order; the same advice aboutMaxConcurrentapplies. - Any increase in
reeve_telemetry_dedup_store_failures_total: Redis operations failed or were skipped during the five-second backoff, so change-only de-duplication and cross-replica copy suppression are briefly unavailable and a reading may be stored more than once (telemetry de-duplication). - Any increase in
reeve_device_ingest_queue_dropped_total: device ingest items were dropped before they were stored. - A gap between
reeve_cluster_bus_published_totalandreeve_cluster_bus_received_totalfor one channel: missed broadcasts. reeve_cluster_redis_policy_uses_total{policy="grant"}: window claims admitted because Redis failed.- The count of automations parked in a suspended state, the depth of parked plugin updates, telemetry table growth on any history table with no retention policy, and the blocked-egress log.
reeve_plugin_alc_retained_total: native plugin load contexts still alive at the one-hour unload check. The one-hour retention warning in the log names the plugin and context. Boot-only factory contexts are kept until restart by design and do not enter these checks. A context a live block swap took a plugin's blocks from does: it unloads once a later swap replaces those blocks, and counts as retained while a later fallback keeps them registered until the replica restarts.
Observation replication
On a multi-replica installation with observation replication enabled, the degraded-tagged observation-replication
check reports the budget and the views. Beyond the check, these are worth an alert, with thresholds taken from what
your deployment normally shows; running multiple replicas
explains how to read them.
| Signal | What it means | What to do |
|---|---|---|
reeve_workload_observation_share_below_min is 1 |
Too many instances for the budget; histories are short | Raise the knob reeve_workload_observation_budget_needed_bytes is non-zero for (maxmemory, total_budget or per_stream_budget) to the value it gives |
reeve_workload_observation_writer_paused above 0 for minutes |
Redis refuses writes as out of memory, and everything else in Redis is refusing too | Find what fills Redis; size maxmemory |
Sustained reeve_workload_observation_incomplete{side="owner"} (or side="replica") |
A view is known to be holed and nothing has closed the gap | Check that the plugin publishes checkpoints, and the gap reasons |
Rising reeve_workload_observation_gaps_total{reason="trimmed-past"} |
Replicas fall behind by more than the history the share buys | More budget per instance, or find why the replica stalls |
Rising …_gaps_total with writer-overflow, reader-overflow or entry-too-large |
Bursts larger than a queue, or frames larger than the entry limit | Raise the matching queue or entry limit, if the burst is normal for you |
reeve_workload_observation_behind_owner_seconds persistently above the configured reader interval |
Replicas act on state that far behind | Check Redis latency and the poll loop; quiet Adaptive and Interrupt readers can add up to the idle interval |
reeve_cluster_bus_received_total{channel="observation_appended"} flat on a replica while reeve_cluster_bus_published_total{channel="observation_appended"} rises on another, under Interrupt or Adaptive |
That replica's hint subscription is down; it reads only on its full round | Check the replica's Redis connection; nothing is lost |
reeve_workload_observation_hints_published_total rising faster than reeve_cluster_bus_published_total{channel="observation_appended"} on the same owner pod |
The owner's bus fails to publish (it logs a warning per failure) | Check the owner's Redis connection; readers fall back to their full round |
reeve_workload_observation_publish_delay_seconds climbing |
The owner's plugin is slow to handle frames, so the stream falls behind | Look at the plugin's dispatch, not at Redis; behind_owner_seconds does not show this |
reeve_workload_observation_dispatch_gate_timeouts_total increasing |
A plugin call hung long enough that later sessions stopped waiting for it | Look at the plugin, not at replication |
Any increase in reeve_workload_observation_taints_total{source="alive_lost"} |
No replica carrying the feature ran for two minutes, or Redis lost the liveness key; the next sweep marked every chain broken | Expected after a downgrade or full outage; otherwise check Redis persistence |
Error reporting
Errors can go to any service that speaks the Sentry protocol (Sentry, Bugsink, GlitchTip). The backend and the browser application switch on separately, each with its own project DSN. Both are off by default, and neither SDK loads while its side is off. A DSN is a project's client key and only permits submitting events.
| Setting | Chart value | Compose variable |
|---|---|---|
ErrorReporting:Environment (default production) |
errorReporting.environment |
ERROR_REPORTING_ENVIRONMENT |
ErrorReporting:Backend:Enabled, …:Dsn |
errorReporting.backend.enabled, .dsn |
ERROR_REPORTING_BACKEND_ENABLED, …_DSN |
ErrorReporting:Frontend:Enabled, …:Dsn, …:Tunnel |
errorReporting.frontend.enabled, .dsn, .tunnel |
ERROR_REPORTING_FRONTEND_ENABLED, …_DSN, …_TUNNEL |
A malformed setting refuses start-up rather than reporting nowhere: a side switched on without a DSN, a value that is
not a DSN, a frontend DSN whose key has characters other than letters, digits and _ (the browser SDK refuses it, so a
dashed UUID the service itself accepts fails here; Bugsink shows its keys without dashes), or a tunnel that is not a
path on the application's own host (absolute and protocol-relative values are refused). The chart refuses the render
for a missing DSN.
Backend. Unhandled request exceptions and log events at Error and above become events; Information and Warning log
events ride along as breadcrumbs. The release is the backend's informational version. The SDK posts through the egress
guard like every outbound client, and follows no redirects, because its authentication header would travel with them.
A service on a private address needs a PrivateHost entry in the egress allowlist (the panel, or Managed:Egress);
a Host entry also works, but any Host entry rejects every host not on the list. A refused post shows in the blocked-egress log under the subsystem core:error-reporting. Events carry no
user, cookies or request bodies. The SDK does not wrap the backend's other HTTP clients, so plugin and workflow calls
get no trace headers or breadcrumbs from it. With networkPolicy.enabled, the chart opens egress to the DSN host's
port.
Browser. At start the application reads GET /api/client-config, which answers without a session because the
sign-in screen reports too; it carries only the frontend DSN, tunnel, environment and release (values every visitor's
browser receives anyway) and nothing while the frontend side is off. Reported are errors caught by error boundaries,
route errors (tagged with the route pattern; a route that does not exist is not an error), uncaught errors and unhandled
promise rejections. Events carry no user, cookies, headers, bodies or query strings, and the application's API calls get
no trace headers. The production CSP allows connect-src 'self' wss: https:, so a DSN host reached over plain HTTP needs a
tunnel.
Tunnel. With Tunnel set, the browser posts each event to that same-origin path instead of the DSN host. Route the
path to the service's envelope endpoint (/api/<project>/envelope/) in the ingress or gateway: it keeps the service off
the public internet and out of reach of content blockers. Empty posts straight to the DSN host.
Source maps. The bundle is built with hidden source maps and debug IDs; the image serves no maps. The sourcemaps
target of frontend/Dockerfile holds the bundle with its maps, for upload by sentry-cli:
docker buildx build --target sourcemaps --output type=local,dest=./sourcemaps frontend
sentry-cli --url https://errors.example.com sourcemaps upload ./sourcemaps
Debug IDs come from the files' content, so upload from the same build that produced the served image.
Metrics
Meters
| Meter | Emitted by |
|---|---|
Reeve.Domain |
Workflow execution, device commands, authentication, realtime delivery, discovery, the cluster bus |
Reeve.Analytics |
Analytics query routing |
Reeve.Workloads |
Managed workload instance state |
Reeve.Workloads.Observation |
Observation replication: the owner's writer, each replica's reader, handovers, checkpoints, the sweep and the budget |
Reeve.MediaPlane |
Viewer negotiations through the media plane, when viewer STUN is configured |
Reeve.Helpers |
Helper evaluation: requests triggered, requests dropped on queue overflow, dependency rows, queue depth |
Reeve.Infrastructure.Observability |
The secret-masking registry (reeve_known_secret_*) |
Reeve.Infrastructure.Plugins |
Native plugin load-context unloads (reeve_plugin_alc_*) |
Reeve.Wasm |
The embedded WASM runtime: compiled modules held in its cache |
Reeve.Cluster |
The cluster library (membership, ownership, fencing, change log, request admission), exported by name. The reeve_cluster_* rows below list its instruments, names and tag values. Its histograms keep the library's second-sized bucket advice |
Reeve.Plugins.* |
Any loaded plugin. Subscribed by wildcard, so a plugin naming its meter in that namespace is collected with no host change; the host knows about no specific plugin |
Conventions
- Labels are bounded. No label carries an unbounded value: observation-replication metrics are labelled by the manifest's workload id, never an instance id, and trigger drop metrics carry no automation label.
- Store-sampling gauges emit every state on each scrape, 0 when absent, so a value that empties reports 0 instead of going stale. A store they cannot read publishes no measurement at all, so the series goes stale rather than reporting zero; a stale series is not "none".
- Pushed per-instance gauges stop tracking beyond a cap.
- Cluster-wide gauges are reported by every replica. Where a gauge reads the shared store (for example
reeve_workflow_active_suspensions), every replica reports the same number: take one replica's, or the max, never the sum.
Stream cardinality
Every metric stream (one instrument, per reader) allocates room for its cardinality limit, the number of distinct label combinations it keeps, when the instrument is first seen, and holds it for the process lifetime. The host sizes the limits itself:
| Streams | Limit |
|---|---|
| Every stream | OpenTelemetry:MetricCardinalityLimit, default 64; most labels are fixed enums |
dotnet.exceptions, reeve_plugin_errors_total, reeve_device_commands_total, reeve_discovery_scan_duration_seconds |
At least 200: a series per exception type or per installed plugin |
Reeve.Workloads.Observation, every Reeve.Plugins.* meter |
At least 200: a workload id, and labels the host never sees |
reeve_workflow_node_errors_total, reeve_workflow_supersession_total |
At least 1 000 |
reeve_workload_observations_appended_total |
At least 1 000: workload id times frame kind |
aspnetcore.routing.match_attempts |
At least 1 000: route template times match status |
http.server.request.duration |
At least 2 000 |
The per-instrument values are floors: a configured default above them applies to those instruments too. A stream that
sees more label combinations than its limit keeps counting; further measurements land in one extra series tagged
otel.metric.overflow="true", so totals stay correct while the breakdown is lost. If that series appears on a
dashboard, raise OpenTelemetry:MetricCardinalityLimit; each step costs memory for every metric, per enabled reader.
The price is paid per reader: the two readers of a pod with about 100 instruments hold about 4 MiB of points between
them, and turning off the reader nobody consumes halves that. Histograms keep the bucket boundaries their instrument
advises.
Metric families
| Family | Labels | Reads |
|---|---|---|
| HTTP server request duration | Method, status code, route; error_type on server errors only, naming the unhandled exception's type or the status code |
Request rate and latency |
| Automation executions and duration | Status, trigger type | Throughput and failure rate; status is succeeded, failed, cancelled or timed_out |
| Plugin errors | Plugin | Per-plugin health |
| Device commands | Plugin, result | Actuation volume and failure by integration |
| Real-time messages sent | Filtered | Push activity |
| Login attempts | Result | Authentication health |
| Analytics routing | Source (raw or hourly) |
Which store analytics queries land on; a ratio near zero or one means the routing threshold is mistuned for the workload |
| Database activity and query timing | — | Connection pressure and slow queries |
| Plugin context unloads | Plugin type, kind (instance or factory) |
Unload checks in progress, which drop to zero after the one-hour check even when a context is retained, and contexts still alive at that check |
| Observation replication | Workload id, plus kind, reason, outcome, side or path | Traffic replicated per workload, stream bytes against their share, gaps by reason, how far replicas trail the owner, handovers by outcome, paused writers and the budget report |
To compare the query plan and timing of a changed statement against the current one on a scaled copy of production
data, use tools/sql-plan-compare.
Instruments
| Metric | Type | Labels and notes |
|---|---|---|
reeve_workflow_executions_total |
counter | status, trigger_type |
reeve_workflow_execution_duration_seconds |
histogram | status, trigger_type |
reeve_active_workflows |
up-down counter | Absent until a workflow first runs |
reeve_workflow_node_errors_total |
counter | block_type, policy, caught, exception_type |
reeve_workflow_supersession_total |
counter | workflow_id, mode, outcome |
reeve_workflow_debug_sessions_total |
counter | outcome (completed | failed | cancelled | killed | abandoned) |
reeve_workflow_debug_pause_duration_seconds |
histogram | — |
reeve_workflow_suspensions_total |
counter | kind (trigger | template | sleep | sub_workflow | property, the last a wait on a device property), outcome (succeeded | failed | cancelled | timed_out: the status the resumed segment ended with, counted when that segment ends). It undercounts: a cancelled wait is recorded only when the caller found the run's state row still parked, or the engine won that row's terminal transition, and endings closed through the whole-log tear-down are recorded for no kind. Treat it as a floor on resolutions; the active gauge has no such gap |
reeve_workflow_suspension_duration_seconds |
histogram | kind |
reeve_workflow_active_suspensions |
observable gauge | kind (trigger | template | sleep | sub_workflow | property: sub_workflow is a run parked on a run it started, property a wait on a device property). Suspension rows still Suspended, read from the store once per collection and per reader: a row a waker has taken but not re-entered is already out, and a row left by a dead replica stays in until a waker retakes it or its deadline passes. Every replica reports the same cluster-wide number |
reeve_workflow_recovery_claimed_rows |
histogram | Run rows each recovery pass claimed, one measurement per pass on every replica, zero included. A row can be claimed by more than one pass. _count stops rising while a pass is busy as well as when the sweep has stopped or its claim fails. le="0" is passes that found nothing; buckets end at 1 000, the most Workflow:Engine:ResumeMaxBatch allows |
reeve_workflow_recovery_endings_total |
counter | reason (dispatched_by_another_run | block_not_idempotent_during_recovery | block_not_idempotent_at_reentry | replayed_by_recovery | resume_failed | not_admitted | resume_value_invalid): claimed runs recovery ended without re-entering them, spelled as the reason of the run's workflow.execution.ended_by_recovery audit entry. replayed_by_recovery is not a lost run (it started again from the beginning); resume_value_invalid is a run whose checkpoint does not read back, abandoned rather than replayed |
reeve_workflow_suspension_wakes_total |
counter | outcome (taken | not_ready | not_mine | lost | held | dropped | failed). held is not terminal: a held wake is counted again when a pass takes, refuses or drops it, so the terminal outcomes add up to the wakes published. A trigger's wake held or dropped is a run that waited a poll interval or more past its fire |
reeve_trigger_runs_dropped_total |
counter | reason (queue_full | notification_queue_full | shutting_down) |
reeve_trigger_runs_unordered_total |
counter | — |
reeve_device_commands_total |
counter | plugin, result |
reeve_device_ingest_queue_dropped_total |
counter | sink_kind, reason: device ingest items dropped |
reeve_window_claim_errors_total |
counter | use: window claims admitted because Redis failed in a way the cluster library does not decide |
reeve_device_ingest_batch_size |
histogram | plugin_type: state updates per device ingest batch; buckets end at 50, the most one batch takes. Mostly le="1" means updates arrive further apart than DeviceIngest:BatchWindow, so the per-batch device view is loaded once per update |
reeve_telemetry_dedup_store_failures_total |
counter | operation (read | claim | release | settle | advance | forget): Redis failures and calls skipped during the five-second backoff. A failed settle leaves claims at the 30 s commit window, so copies are de-duplicated for longer rather than stored twice |
reeve_plugin_errors_total |
counter | plugin, error_type |
reeve_auth_logins_total |
counter | result (success | failure | locked) |
reeve_signalr_messages_sent_total |
counter | filtered (true | false; true marks a send that reached fewer users than were eligible) |
reeve_discovery_candidates_total |
counter | type |
reeve_discovery_scan_duration_seconds |
histogram | Per provider |
reeve_matter_bridge_button_presses_total |
counter | outcome (delivered | deduplicated | send_failed | forwarded | no_receiver | dropped | stale | queue_full) |
reeve_cluster_bus_published_total |
counter | channel |
reeve_cluster_bus_received_total |
counter | channel, counted after the own-origin skip |
reeve_workload_instances |
observable gauge | state, read from the repository on every scrape |
reeve_media_plane_viewer_negotiations_total |
counter | result (connected | fell-back | no-fallback | unreported), pair (lan | public-port | stun | relay | none), viewer_network (home | outside | unknown), plane_srflx; counted by the replica that served the session, never an address, user or camera |
reeve_helper_evaluations_triggered_total |
counter | trigger_source (device | helper | user) |
reeve_helper_evaluation_dropped_total |
counter | — |
reeve_helper_dependencies_registered |
up-down counter | — |
reeve_helper_evaluation_queue_depth |
observable gauge | — |
reeve_wasm_cached_modules |
observable gauge | Compiled WASM modules in the runtime cache (native memory); one per live WASM block plugin |
reeve_known_secret_oversized_registrations_total |
counter | Observed secret values skipped by the masking registry for size (secret masking) |
reeve_plugin_alc_unloading |
gauge | Native plugin load contexts that have begun unloading |
reeve_plugin_alc_retained_total |
counter | Contexts still alive at the one-hour check |
reeve.analytics.routing |
counter | source (raw | hourly) |
reeve_cluster_replica_phase |
observable gauge | phase (starting, loading, catching_up, activated, serving, fencing, fenced, draining, exited): 1 for the current phase, 0 for the others |
reeve_cluster_fences_total |
counter | trigger (fence_start, applier_stall, stuck_attempt, fatal_fault, zero_row_renewal, timeline, unanswered_activation). A database switchover or failover fences a serving replica once: with timeline when its renewal reaches the new primary before its fence start, otherwise with fence_start or zero_row_renewal |
reeve_cluster_fence_step_overruns_total |
counter | step (4, 5, 6): fence steps not awaited past StopBudget |
reeve_cluster_lease_renewal_duration_seconds |
histogram | outcome (renewed, other_timeline, not_mine, unknown): renewal round trips, the commit's wait for the standby included. unknown got no answer within RenewTimeout (3 s) or got an error |
reeve_cluster_applier_full_load_duration_seconds |
histogram | outcome (loaded, failed): each full load on start and on every rejoin; size ReconcileTimeout from it |
reeve_cluster_change_log_head |
observable gauge | The change-log head as the applier last read it |
reeve_cluster_change_log_horizon |
observable gauge | horizon_seq as the applier last read it; 0 until retention first deletes |
reeve_cluster_change_log_retained |
observable gauge | Entries the log keeps |
reeve_cluster_generation_head |
observable gauge | The head the replica's current generation stands for |
reeve_cluster_generation_pins |
observable up-down counter | generation (current, superseded): scopes holding a pin; pins on a superseded generation are the long-lived ones (a WebSocket or SSE connection keeps its connect-time pin) |
reeve_cluster_applier_attempt_duration_seconds |
histogram | aggregate_type; outcome (accepted, failed, timed_out); pass (full, incremental) |
reeve_cluster_applier_deferred_running |
observable up-down counter | aggregate_type: deferred work started by a publication and not yet returned |
reeve_cluster_applier_deferred_oldest_age_seconds |
observable gauge | aggregate_type: age of the oldest running deferred work; it grows for work that ignores its Superseded token |
reeve_cluster_applier_invalid_cursor_reloads_total |
counter | Passes that found the local cursor invalid and reloaded every type: the log was rewound (a failover that lost a suffix, a restore) or retention passed the cursor. Each is also an Information line |
reeve_cluster_rejoins_total |
counter | decision (rejoin, higher_epoch) |
reeve_cluster_rejoin_duration_seconds |
histogram | Time out of service a rejoin ended; with the defaults it includes RejoinBackoff (60 s) after a short epoch |
reeve_cluster_drain_duration_seconds |
histogram | outcome (drained, unanswered, taken_over). unanswered: the draining write got no answer, so writers wait for the lease to expire as after a crash |
reeve_cluster_drain_awaited_requests |
observable gauge | Requests and hub invocations running at drain step 1 that still are (at most ProxyReadTimeout) |
reeve_cluster_activation_refusals_total |
counter | reason (activation.protocol-floor, activation.version-floor): one per RenewInterval while refused |
reeve_cluster_commit_duration_seconds |
histogram | transaction (library, fenced); outcome (committed, unknown, failed). With synchronous replication, the wait for the standby plus the primary's flush and one round trip; a fenced commit also waits on the change-log append lock |
reeve_cluster_owned_takeover_duration_seconds |
histogram | kind: from the write that gave a unit to its new owner to the new owner starting it |
reeve_cluster_owned_release_overdue |
up-down counter | kind: release requests past ReleaseGrace, reported by the placer's replica only |
reeve_cluster_owned_running |
observable gauge | kind: tenures this replica runs; sum by (kind) across replicas is the number of owners (a handover can sum to 0 or 2 for one scrape) |
reeve_cluster_skip_open |
up-down counter | aggregate_type: open skips as each replica reads them; N replicas report N per skip |
reeve_cluster_capture_discards_total |
counter | Transactions that ended around EF Core, whose captured entries were discarded |
reeve_cluster_admission_refusals_total |
counter | reason (replica_not_serving, replica_fenced, replica_behind): requests refused by the library before anything ran; safe-mode refusals come from the host and are not counted here |
reeve_cluster_write_refused_total |
counter | Requests answered 503 write_refused |
reeve_cluster_write_unconfirmed_total |
counter | Requests answered 202 write_unconfirmed |
reeve_cluster_slot_acquires_total |
counter | store (postgresql, redis); result (acquired, full, not_serving, unknown) |
reeve_cluster_slot_renewals_total |
counter | store; result (renewed, ended, not_serving, unknown) |
reeve_cluster_slot_held |
observable gauge | store: slots this process holds |
reeve_cluster_retention_deleted_total |
counter | record (claim, once, flight, budget, budget_id, counter, slot) |
reeve_cluster_redis_policy_uses_total |
counter | primitive (claim, single_flight, budget, slot); policy (grant, refuse): times a Redis primitive applied its unavailable-Redis policy |
reeve_workload_observations_appended_total |
counter | workload, kind: entries the owner appended |
reeve_workload_observation_bytes |
observable gauge | workload: stream and checkpoint bytes at the last trim, summed over the sessions this replica owns |
reeve_workload_observation_share_bytes |
observable gauge | workload: the share streams are trimmed to; the largest where a workload has several instances |
reeve_workload_observation_gaps_total |
counter | workload, reason (cold-start | sequence-jump | trimmed-past | chain-broken | session-ended-unclean | entry-too-large | writer-overflow | writer-paused | reader-overflow | redis-restarted | owner-incomplete | not-replicated | observer-failed) |
reeve_workload_observation_behind_owner_seconds |
histogram | workload: Redis time minus the owner's last high-water refresh, sampled every poll |
reeve_workload_observation_publish_delay_seconds |
histogram | workload: from arrival at the gateway to the stream, the owner's dispatch included |
reeve_workload_observation_writer_paused |
up-down counter | reason (oom) |
reeve_workload_observation_transaction_retries_total |
counter | operation: guarded writes that lost a race and were retried |
reeve_workload_observation_share_below_min |
observable gauge | 1 while the share is under MinShareBytes |
reeve_workload_observation_budget_needed_bytes |
observable gauge | knob (maxmemory | total_budget | per_stream_budget): while the share is under MinShareBytes, what the binding knob must be raised to; 0 for the others |
reeve_workload_observation_handover_seconds |
histogram | workload, outcome (clean | forced | buffer-full | timeout | redis-error) |
reeve_workload_observation_dispatch_gate_wait_seconds |
histogram | workload |
reeve_workload_observation_dispatch_gate_timeouts_total |
counter | Gate holders given up on after HandoverDrainTimeout |
reeve_workload_observation_superseded_closes_total |
counter | workload, path (pending | not-current | registration) |
reeve_workload_observation_taints_total |
counter | source (not_replicating | alive_lost) |
reeve_workload_observation_incomplete |
observable gauge | workload, side (owner | replica) |
reeve_workload_observation_checkpoint_bytes |
histogram | workload |
reeve_workload_observation_checkpoint_age_seconds |
histogram | workload |
reeve_workload_observation_reader_rounds_total |
counter | kind (full | dirty), cause (timer | hint | busy | full-reply | requested | retry) |
reeve_workload_observation_hints_published_total |
counter | workload: hints handed to the cluster bus |
reeve_workload_observation_reader_mode |
observable gauge | mode (polling | interrupt | adaptive), state (steady | busy | idle) |
The change-log gauges report what the replica's applier last read, at its poll (every ApplyPollInterval) or in a
pass's snapshot. They report nothing before the applier's first read, stand still while it does not poll (starting,
fenced, after the exit), and a replaced pod's series goes stale with the pod, so a query over a window that spans a
deploy also finds the old pod's series. On a serving pod a series that stays missing past the first poll is a fault.
Traces
Two activity sources are registered by the application itself, beside the auto-instrumented ASP.NET Core, HttpClient, EF Core, Npgsql and (optionally) Redis spans.
Reeve.Infrastructure.Automations.WorkflowEngine:
workflow.execute one span per execution
workflow.id, automation.id, trigger.id, workflow.result
├── workflow.block.execute one span per node executed
│ workflow.id, workflow.execution.id, workflow.node.id,
│ workflow.node.block_type_id, workflow.block.display_name,
│ workflow.depth, workflow.outputs.count
│ [on error] status=Error, workflow.node.error_policy, workflow.node.error_caught
└── (EF Core, HTTP, Redis, Npgsql spans from auto-instrumentation)
The parent span is set to error status and tagged with workflow.result on non-success paths.
Reeve.Infrastructure.Plugins.InstanceLane publishes one span per plugin instance lane operation, named
plugin.instance.<kind> (start, restart, stop, reload, reloadforgrant, forget) and tagged
reeve.plugin.instance_id. The span covers the operation's wait behind earlier operations on that instance. It is the
root of a trace of its own, because what a plugin starts in it outlives the caller; when a caller enqueued the
operation inside a trace, the span carries a link to the caller's span. It is tagged reeve.plugin.lane.result (ok,
stopped, failed, failedtostop, cancelled, gone and so on); failed and failedtostop set error status. The
span carries no status description, because the failure's text comes from plugin code; the log line has it.
An inbound request span carries the HTTP semantic-convention attributes ASP.NET Core sets, each once. Its url.query
keeps the parameter names and redacts every value.
Spans carry no secrets. Workflow input and output values, authentication tokens and signing keys, and broker
passwords or connection strings are omitted. An outbound HTTP span made through the plugin or workflow egress pipeline
carries no path text in url.full: the route template the plugin names, or a keyed fingerprint, stands in for it,
because a plugin's path can carry a token. Anything added to a span is checked against that list.
Logs
Logs go to standard output for the platform to collect. HttpClient request logs default to Warning; set
Serilog__MinimumLevel__Override__System.Net.Http.HttpClient=Information to see each request.
Two application-level logs are read through the interface rather than through log aggregation:
- The blocked-egress log records every refused outbound call with host, port, reason, subsystem and the plugin or
automation it belongs to; it turns "the integration silently does nothing" into a diagnosable event.
egress.viewreads it. - The plugin call log summarises every outbound call through the vended client: method, host, path, status and
duration. Bodies, headers and the query string are never captured, nor is the path's text, since plugins carry
credentials there (a webhook token, a bridge key): the log shows the route template the plugin names for the request,
or
/<redacted:1a2b3c4d>, a fingerprint that is equal for equal paths within one backend process and shows nothing of the path. Workflow HTTP blocks and scripts keep the path in the run log, which only those who can view the workflow's runs read.
Permission denials are logged with the exact missing code; the client sees a generic message.
Levels worth knowing:
- A cluster mutex lost without being asked logs
Mutex <key> is lost: <reason>at Warning (a validity deadline that passed, a renewal the library refused, or a fence). A loss the holder asked for, or one caused by a graceful stop, is Debug. - A
/health/ready503 whose only cause is the replica's own boot or stop phase (starting, loading, catching up, activated, draining, exited), with every other ready check healthy, logs at Information; so does one whose only cause is safe mode, and a/health/details503 whose only unhealthy check issafe-mode. Any other unready answer logs at Error. A request a safe-mode replica refuses logs at Warning, like a fenced member's.
Secret masking
The host masks registered secret values immediately before configured Serilog sinks receive each event, and in exported span attributes and status descriptions. Mutable span tags are rewritten; an immutable span event or link that contains a match causes the span to be dropped before export.
| Entry class | Registration source | Lifetime and bounds |
|---|---|---|
| Configured secrets | Start-up configuration values whose keys identify passwords, secrets, tokens or signing keys, including the passwords parsed from database and Redis connection strings | Process lifetime; never evicted |
| Source-keyed current values | Integration, trigger, plugin OAuth, repository credential, config-flow and sensitive runtime-settings stores; resolved secret references keyed by their full reference string | Kept while current for their source key; on rotation the previous value stays for Observability:KnownSecrets:RotationRetention (24 hours). A reference is registered after successful resolution and refresh; a failed resolution registers nothing |
| Observed values | Plugin Data Protection protect and unprotect, unkeyed trigger and config-flow observations, the WASM protect host function |
LRU pool bounded by Observability:KnownSecrets:MaximumValues (20 000) and an estimated MaximumMemoryBytes (32 MiB); each value is capped at the smaller of MaximumObservedValueBytes (16 KiB) and one sixty-fourth of the pool budget. Oversized values are skipped and counted in reeve_known_secret_oversized_registrations_total |
MinimumLength defaults to eight characters. Matching covers percent-encoded, form-encoded, JSON-escaped and
base64/base64url substrings. Every new pattern rebuilds the matcher under a lock, so masking runs on an immutable
snapshot at the cost of work proportional to all registered patterns for each new value.
The matcher cannot recover a hashed, truncated or split value, workload container stdout, workflow run payloads or memory dumps, and two safe-mode start-up writes to standard error bypass Serilog. Masking is a safety net: code still avoids logging secrets, and workflow payload key masking stays in force.
The audit trail
The audit trail is detection, not prevention. Rows carry no append-only constraint and no hash chain, so write access to the database can rewrite history undetectably; treat the trail as evidence for an operator, not as tamper-proof (see known limitations).
Every privileged mutation writes a row: user and role administration, plugin install, configuration and uninstall, automation version rollback, repository credentials, egress changes, self-service password change, token issue and revocation, every second-factor lifecycle event, and any role sync that changed a role set. Anything that changes what an account can do, or how it signs in, writes its row in the same save as the change, so the trail can neither describe a rolled-back demotion nor miss a committed one. Metadata never carries a plaintext secret; credential events record the identifier only.
Plugins report operator-actionable problems through a separate issue registry with a stable code and a severity, optionally with a fix hint and a guided repair (repairs). Health checks answer "is the system up" and the audit trail answers "who did what"; neither is where an operator finds "this bridge needs re-authorising". Issue metadata is visible to any administrator, so a plugin never puts a secret in it.
Kubernetes
| Value | Effect |
|---|---|
prometheus.enabled, prometheus.serviceMonitor.enabled |
Renders a ServiceMonitor (interval 30s, scrape timeout 10s, extra labels, honorLabels) so the Prometheus operator discovers the backend, and turns /metrics on |
metrics.bearerToken, metrics.bearerTokenSource |
The scrape token. With a ServiceMonitor, Prometheus reads it from the rendered Secret, so the source is an inline value, an existing Secret or an external secret; a file source has no Secret to reference and is refused |
grafana.dashboards.enabled |
Bundles the dashboards as a ConfigMap labelled for a Grafana dashboard sidecar (grafana.dashboards.label, default grafana_dashboard, value "1") |
observability.metrics.endpoint, observability.traces.endpoint |
The OTLP endpoints |
A workload can declare a metrics port and path in its manifest, which renders a named service port plus scrape annotations; no custom resource is needed. Per-node workloads need node-level scraping: a host-network workload's scrape annotations are emitted on its Service, and a ClusterIP Service round-robins across the per-node pods, so annotation-based discovery samples one node per interval. Scrape the node addresses directly for per-node metrics.