horsies.task.attempts
  prometheus: horsies_task_attempts_total
  kind: counter
  unit: 1
  recorder: worker
  help: Attempts that ended with a known outcome, by outcome and error code.
  label task (horsies.task.name): declared task names, fallback "(unregistered)"
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
  label outcome (horsies.task.outcome): "COMPLETED" "FAILED" "WORKER_FAILURE"
  label error_code (error.type): "" "UNHANDLED_EXCEPTION" "TASK_EXCEPTION" "WORKER_CRASHED" "BROKER_ERROR" "WORKER_RESOLUTION_ERROR" "WORKER_SERIALIZATION_ERROR" "RESULT_DESERIALIZATION_ERROR" "WORKFLOW_ENQUEUE_FAILED" "SUBWORKFLOW_LOAD_FAILED" "WORKFLOW_RECOVERY_LIMIT_REACHED" "SUBWORKFLOW_DEPTH_LIMIT_REACHED" "TASK_BLOCKED_LOOP" "NEIGHBOUR_BLOCKED_LOOP" "WORKFLOW_START_INCOMPLETE" "RETURN_TYPE_MISMATCH" "WORKFLOW_CTX_MISSING_ID" "NO_TYPE_AVAILABLE" "WAIT_TIMEOUT" "TASK_NOT_FOUND" "WORKFLOW_NOT_FOUND" "RESULT_NOT_AVAILABLE" "RESULT_NOT_READY" "ASYNC_CONTEXT" "INVALID_INPUT" "WAIT_INSIDE_TASK" "TASK_CANCELLED" "TASK_EXPIRED" "TASK_TIMEOUT" "WORKFLOW_PAUSED" "WORKFLOW_EXPIRED" "WORKFLOW_FAILED" "WORKFLOW_CANCELLED" "UPSTREAM_SKIPPED" "SUBWORKFLOW_FAILED" "WORKFLOW_SUCCESS_CASE_NOT_MET" "WORKFLOW_OUTPUT_SKIPPED" then declared user error codes, fallback "undeclared"
horsies.task.attempts.end_not_known
  prometheus: horsies_task_attempts_end_not_known_total
  kind: counter
  unit: 1
  recorder: worker
  help: Attempts whose child was killed before its exit was seen; recovery decides the row.
  label task (horsies.task.name): declared task names, fallback "(unregistered)"
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.task.run.duration
  prometheus: horsies_task_run_duration_seconds
  kind: histogram
  unit: s
  recorder: worker
  help: Time from the placement of an attempt on a child to the end that the worker saw, with the frame transit and the start write.
  buckets: 0.005 0.01 0.025 0.05 0.1 0.25 0.5 1 2.5 5 10 30 60 120 300 600 1800 3600 7200 21600 86400
  label task (horsies.task.name): declared task names, fallback "(unregistered)"
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
  label outcome (horsies.task.outcome): "COMPLETED" "FAILED" "WORKER_FAILURE"
horsies.task.queue.duration
  prometheus: horsies_task_queue_duration_seconds
  kind: histogram
  unit: s
  recorder: worker
  help: Time from the due time of a task to its claim, both from the database.
  buckets: 0.005 0.01 0.025 0.05 0.1 0.25 0.5 1 2.5 5 10 30 60 120 300 600 1800 3600 7200 21600 86400
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.task.slot_wait.duration
  prometheus: horsies_task_slot_wait_duration_seconds
  kind: histogram
  unit: s
  recorder: worker
  help: Time from the claim result in the worker to the placement of the attempt on a child.
  buckets: 0.005 0.01 0.025 0.05 0.1 0.25 0.5 1 2.5 5 10 30 60 120 300 600 1800 3600 7200 21600 86400
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.task.record.duration
  prometheus: horsies_task_record_duration_seconds
  kind: histogram
  unit: s
  recorder: worker
  help: Time from the end that the worker saw to the end of the outcome write.
  buckets: 0.005 0.01 0.025 0.05 0.1 0.25 0.5 1 2.5 5 10 30 60 120 300 600 1800 3600 7200 21600 86400
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.task.retries
  prometheus: horsies_task_retries_total
  kind: counter
  unit: 1
  recorder: worker
  help: Attempts whose outcome write scheduled a retry, by error code.
  label task (horsies.task.name): declared task names, fallback "(unregistered)"
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
  label error_code (error.type): "" "UNHANDLED_EXCEPTION" "TASK_EXCEPTION" "WORKER_CRASHED" "BROKER_ERROR" "WORKER_RESOLUTION_ERROR" "WORKER_SERIALIZATION_ERROR" "RESULT_DESERIALIZATION_ERROR" "WORKFLOW_ENQUEUE_FAILED" "SUBWORKFLOW_LOAD_FAILED" "WORKFLOW_RECOVERY_LIMIT_REACHED" "SUBWORKFLOW_DEPTH_LIMIT_REACHED" "TASK_BLOCKED_LOOP" "NEIGHBOUR_BLOCKED_LOOP" "WORKFLOW_START_INCOMPLETE" "RETURN_TYPE_MISMATCH" "WORKFLOW_CTX_MISSING_ID" "NO_TYPE_AVAILABLE" "WAIT_TIMEOUT" "TASK_NOT_FOUND" "WORKFLOW_NOT_FOUND" "RESULT_NOT_AVAILABLE" "RESULT_NOT_READY" "ASYNC_CONTEXT" "INVALID_INPUT" "WAIT_INSIDE_TASK" "TASK_CANCELLED" "TASK_EXPIRED" "TASK_TIMEOUT" "WORKFLOW_PAUSED" "WORKFLOW_EXPIRED" "WORKFLOW_FAILED" "WORKFLOW_CANCELLED" "UPSTREAM_SKIPPED" "SUBWORKFLOW_FAILED" "WORKFLOW_SUCCESS_CASE_NOT_MET" "WORKFLOW_OUTPUT_SKIPPED" then declared user error codes, fallback "undeclared"
horsies.task.claims.released
  prometheus: horsies_task_claims_released_total
  kind: counter
  unit: 1
  recorder: worker
  help: Claimed tasks that the worker released before they ran, by reason.
  label reason (horsies.reason): "pool_stopping" "pool_failed" "queue_full" "no_child_of_its_kind" "runner_beats_failed_closed" "held_for_queue_cap" "workflow_not_runnable" "returned_as_isolated"
horsies.task.starts.refused
  prometheus: horsies_task_starts_refused_total
  kind: counter
  unit: 1
  recorder: worker
  help: Attempts that stopped before the child set the task RUNNING, by reason.
  label reason (horsies.reason): "claim_lost" "ownership_unconfirmed" "workflow_stopped" "task_expired" "node_not_linked" "orphan_cancelled"
horsies.finalize.retries
  prometheus: horsies_finalize_retries_total
  kind: counter
  unit: 1
  recorder: worker
  help: Outcome writes that were sent again after a failure, by write stage.
  label stage (horsies.finalize.stage): "phase1_persist" "timeout_write" "future"
horsies.recovery.tasks
  prometheus: horsies_recovery_tasks_total
  kind: counter
  unit: 1
  recorder: worker
  help: Task rows that the reaper recovered, by action.
  label action (horsies.recovery.action): "running_failed" "running_retried" "claim_requeued" "orphan_cancelled" "pending_expired"
horsies.recovery.pass.failures
  prometheus: horsies_recovery_pass_failures_total
  kind: counter
  unit: 1
  recorder: worker
  help: Reaper passes in which a recovery step failed, by step.
  label step (horsies.recovery.step): "owner_gone" "stale_claimed_requeue" "orphan_task_audit" "stale_running_recovery" "pending_expiry" "workflow_recovery" "phase2_recovery" "retention_cleanup" "ended_worker_rows" "paused_workflow_expiry" "partition_coverage" "key_reservation_cleanup" "partition_pruning"
horsies.worker.children.started
  prometheus: horsies_worker_children_started_total
  kind: counter
  unit: 1
  recorder: worker
  help: Child processes that sent their ready frame, by kind.
  label kind (horsies.child.kind): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.worker.children.replaced
  prometheus: horsies_worker_children_replaced_total
  kind: counter
  unit: 1
  recorder: worker
  help: Child processes that ended and were replaced, by kind and reason.
  label kind (horsies.child.kind): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
  label reason (horsies.reason): "child_died" "channel_lost" "protocol_violation" "protocol_mismatch" "killed_by_parent" "slot_defect" "spawner_stopped" "task_count" "memory_limit" "second_cancel" "loop_blocked" "leftover_work" "at_deadline" "core_stopped"
horsies.worker.child.boot.duration
  prometheus: horsies_worker_child_boot_duration_seconds
  kind: histogram
  unit: s
  recorder: worker
  help: Time from the start of a child process to its ready frame, by kind.
  buckets: 0.005 0.01 0.025 0.05 0.1 0.25 0.5 1 2.5 5 10 30 60 120 300 600 1800 3600 7200 21600 86400
  label kind (horsies.child.kind): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.worker.seats
  prometheus: horsies_worker_seats
  kind: gauge
  unit: 1
  recorder: worker
  help: Seats that the worker runs, by execution class.
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.worker.seats.in_use
  prometheus: horsies_worker_seats_in_use
  kind: gauge
  unit: 1
  recorder: worker
  help: Seats that hold a task, by execution class.
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.worker.slots.down
  prometheus: horsies_worker_slots_down
  kind: gauge
  unit: 1
  recorder: worker
  help: Child slots that are down, by kind.
  label kind (horsies.child.kind): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.worker.claim.passes
  prometheus: horsies_worker_claim_passes_total
  kind: counter
  unit: 1
  recorder: worker
  help: Passes of the claim loop, by result.
  label result (horsies.result): "claimed" "empty" "failed"
horsies.worker.memory.rss
  prometheus: horsies_worker_memory_rss_bytes
  kind: gauge
  unit: By
  recorder: worker
  help: Resident memory of the worker parent, of the task children together, and of the handler child.
  label process (horsies.process): "parent" "children" "handler_child"
horsies.telemetry.events.dropped
  prometheus: horsies_telemetry_events_dropped_total
  kind: counter
  unit: 1
  recorder: worker
  help: Lifecycle events that did not reach the handler child, by cause.
  label cause (horsies.drop.cause): "queue_full" "child_down"
horsies.telemetry.series.dropped
  prometheus: horsies_telemetry_series_dropped_total
  kind: counter
  unit: 1
  recorder: worker
  help: Samples that were dropped because their metric holds its greatest number of series, by metric.
  label metric (horsies.metric): "horsies.task.attempts" "horsies.task.attempts.end_not_known" "horsies.task.run.duration" "horsies.task.queue.duration" "horsies.task.slot_wait.duration" "horsies.task.record.duration" "horsies.task.retries" "horsies.task.claims.released" "horsies.task.starts.refused" "horsies.finalize.retries" "horsies.recovery.tasks" "horsies.recovery.pass.failures" "horsies.worker.children.started" "horsies.worker.children.replaced" "horsies.worker.child.boot.duration" "horsies.worker.seats" "horsies.worker.seats.in_use" "horsies.worker.slots.down" "horsies.worker.claim.passes" "horsies.worker.memory.rss" "horsies.telemetry.events.dropped" "horsies.telemetry.series.dropped" "horsies.telemetry.handler.errors" "horsies.telemetry.handler.dropped" "horsies.spans.worker_ended.read_failures" "horsies.worker.info" "horsies.task.sent" "horsies.task.send.duration" "horsies.queue.tasks" "horsies.queue.pending.more_than" "horsies.queue.oldest_pending.age" "horsies.fleet.workers" "horsies.fleet.workers.telemetry_down" "horsies.fleet.seats" "horsies.fleet.seats.in_use" "horsies.fleet.unserved_classes" "horsies.workflows" "horsies.schedule.last_run.age" "horsies.schema.version" "horsies.exporter.collect.duration" "horsies.exporter.collect.errors" "horsies.exporter.collect.failed"
horsies.telemetry.handler.errors
  prometheus: horsies_telemetry_handler_errors_total
  kind: counter
  unit: 1
  recorder: worker
  help: Events for which an event handler failed, by handler.
  label handler (horsies.handler): declared handler names, fallback "(unknown)"
horsies.telemetry.handler.dropped
  prometheus: horsies_telemetry_handler_dropped_total
  kind: counter
  unit: 1
  recorder: worker
  help: Events that the full queue of an event handler dropped, by handler.
  label handler (horsies.handler): declared handler names, fallback "(unknown)"
horsies.spans.worker_ended.read_failures
  prometheus: horsies_spans_worker_ended_read_failures_total
  kind: counter
  unit: 1
  recorder: worker
  help: Spans of attempts of workflow tasks that the worker ended, made with no workflow node, by reason.
  label reason (horsies.reason): "read_failed" "not_read"
horsies.worker.info
  prometheus: horsies_worker_info
  kind: gauge
  unit: 1
  recorder: worker
  help: Always 1. The labels hold the version, the profile and the id of the worker.
  label version (horsies.version): the version of the process
  label profile (horsies.worker.profile): the profile of the process
  label worker_id (horsies.worker.id): the worker id of the process
horsies.task.sent
  prometheus: horsies_task_sent_total
  kind: counter
  unit: 1
  recorder: producer
  help: Sends of tasks from this producer, by result.
  label task (horsies.task.name): declared task names, fallback "(unregistered)"
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
  label result (horsies.result): "ok" "SEND_SUPPRESSED" "ASYNC_CONTEXT" "VALIDATION_FAILED" "ENQUEUE_FAILED" "PAYLOAD_MISMATCH" "IDEMPOTENCY_KEY_CONFLICT" "PAYLOAD_TOO_LARGE"
horsies.task.send.duration
  prometheus: horsies_task_send_duration_seconds
  kind: histogram
  unit: s
  recorder: producer
  help: Time of one send from this producer.
  buckets: 0.005 0.01 0.025 0.05 0.1 0.25 0.5 1 2.5 5 10 30 60 120 300 600 1800 3600 7200 21600 86400
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
horsies.queue.tasks
  prometheus: horsies_queue_tasks
  kind: gauge
  unit: 1
  recorder: fleet collector
  help: Live task rows, by queue, execution class and status; a PENDING count past the count limit is in horsies.queue.pending.more_than instead.
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
  label status (horsies.status): "PENDING" "CLAIMED" "RUNNING"
horsies.queue.pending.more_than
  prometheus: horsies_queue_pending_more_than
  kind: gauge
  unit: 1
  recorder: fleet collector
  help: PENDING tasks of a queue and execution class whose count passed the count limit: the count is more than this value.
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.queue.oldest_pending.age
  prometheus: horsies_queue_oldest_pending_age_seconds
  kind: gauge
  unit: s
  recorder: fleet collector
  help: Age of the oldest due PENDING task, by queue and execution class.
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.fleet.workers
  prometheus: horsies_fleet_workers
  kind: gauge
  unit: 1
  recorder: fleet collector
  help: Workers with a snapshot inside the live window, by state.
  label state (horsies.worker.state): "serving" "degraded"
horsies.fleet.workers.telemetry_down
  prometheus: horsies_fleet_workers_telemetry_down
  kind: gauge
  unit: 1
  recorder: fleet collector
  help: Live workers whose telemetry part is down, by part.
  label part (horsies.telemetry.part): "endpoint" "handler_child"
horsies.fleet.seats
  prometheus: horsies_fleet_seats
  kind: gauge
  unit: 1
  recorder: fleet collector
  help: Seats of the live workers, by execution class.
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.fleet.seats.in_use
  prometheus: horsies_fleet_seats_in_use
  kind: gauge
  unit: 1
  recorder: fleet collector
  help: Seats of the live workers that hold a task, by execution class.
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.fleet.unserved_classes
  prometheus: horsies_fleet_unserved_classes
  kind: gauge
  unit: 1
  recorder: fleet collector
  help: 1 for each queue and execution class with PENDING tasks and no live worker that serves it.
  label queue (horsies.queue): declared queue names, fallback "(unknown)"
  label execution (horsies.task.execution): "ISOLATED" "SHARED_ASYNC" "SHARED_THREAD"
horsies.workflows
  prometheus: horsies_workflows
  kind: gauge
  unit: 1
  recorder: fleet collector
  help: Workflows that are not terminal, by status.
  label status (horsies.status): "RUNNING" "PAUSED"
horsies.schedule.last_run.age
  prometheus: horsies_schedule_last_run_age_seconds
  kind: gauge
  unit: s
  recorder: fleet collector
  help: Time since the last run of a schedule, by schedule.
  label schedule (horsies.schedule): declared schedule names, fallback "(unknown)"
horsies.schema.version
  prometheus: horsies_schema_version
  kind: gauge
  unit: 1
  recorder: fleet collector
  help: The schema version of the database.
horsies.exporter.collect.duration
  prometheus: horsies_exporter_collect_duration_seconds
  kind: histogram
  unit: s
  recorder: fleet collector
  help: Time of one query of the fleet collector, by query.
  buckets: 0.005 0.01 0.025 0.05 0.1 0.25 0.5 1 2.5 5 10 30 60 120 300 600 1800 3600 7200 21600 86400
  label query (horsies.collector.query): "queue_tasks" "oldest_pending" "workers" "class_coverage" "workflows" "schedules" "schema_version"
horsies.exporter.collect.errors
  prometheus: horsies_exporter_collect_errors_total
  kind: counter
  unit: 1
  recorder: fleet collector
  help: Queries of the fleet collector that failed or passed their time limit, by query.
  label query (horsies.collector.query): "queue_tasks" "oldest_pending" "workers" "class_coverage" "workflows" "schedules" "schema_version"
horsies.exporter.collect.failed
  prometheus: horsies_exporter_collect_failed
  kind: gauge
  unit: 1
  recorder: fleet collector
  help: 1 when the last run of a query of the fleet collector failed or passed its time limit, 0 when it answered, by query.
  label query (horsies.collector.query): "queue_tasks" "oldest_pending" "workers" "class_coverage" "workflows" "schedules" "schema_version"
