Skip to content

Monitoring

Health endpoints

Endpoint Auth 200 means Used by
GET /healthz none The HTTP process answers Liveness probe
GET /readyz none The scheduler loop is healthy and PostgreSQL answers Readiness probe, load balancer

/healthz 200 with /readyz 503 means the process is alive but cannot work — usually the database. Restarting the pod without finding the cause only hides it.

Prometheus

/metrics is disabled until a scrape token is configured.

  1. Create a Secret with a random token: kubectl -n runway-prod create secret generic runway-metrics --from-file=token=metrics-token.
  2. Set metrics.existingSecret: runway-metrics and upgrade.
  3. Scrape the controller Service on port 8000, path /metrics, with that bearer token.
ServiceMonitor (Prometheus Operator)
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: runway
  namespace: runway-prod
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: runway   # the chart's Service has no labels: add this one with your GitOps overlay
  endpoints:
    - port: http
      path: /metrics
      interval: 60s
      authorization:
        type: Bearer
        credentials: {name: runway-metrics, key: token}

Allow the Prometheus namespace to reach port 8000 in your NetworkPolicy — the chart's policy admits only the gateway namespace and runner pods.

Metrics

All are gauges, computed on scrape.

Metric Labels Meaning
runway_resources kind = hosts, inventories, projects, organisations, teams, templates, workflows, users, schedules Current counts. hosts counts host memberships per inventory
runway_unknown_host_inventories — Inventories whose host count is unknown
runway_runs status = successful, failed, running, waiting, pending, skipped, canceled, canceling Retained runs by current status — decreases when retention deletes runs
runway_active_runs — Runs with a step starting or running
runway_max_parallel — Configured runner limit
runway_controller_healthy — 1 if this controller's scheduler loop is healthy

Every controller reports the same installation-wide values. Aggregate with max across controller pods of a release, not sum.

runway_runs{status="failed"} is a level, not a counter. max(delta(runway_runs{status="failed"}[1h])) > 0 approximates new failures in the last hour; retention can make the level drop, so treat it as a hint and confirm in Jobs.

Suggested alerts

- alert: LiftwayNotReady
  expr: sum(kube_deployment_status_replicas_ready{deployment="runway"}) < 1
  for: 5m
- alert: LiftwayControllerUnhealthy
  expr: min(runway_controller_healthy) == 0
  for: 5m
- alert: LiftwayRunnersSaturated
  expr: max(runway_active_runs) >= max(runway_max_parallel)
  for: 30m
- alert: LiftwayApprovalsWaiting
  expr: max(runway_runs{status="waiting"}) > 0
  for: 12h
- alert: LiftwayInventoryCountUnknown
  expr: max(runway_unknown_host_inventories) > 0
  for: 1h

Also watch outside Liftway: PostgreSQL availability, storage, connections and backup age; Vault seal status and auth errors; cache memory and evictions; log-worker CPU; certificate expiry; image-pull failures of runner Jobs.

In the console

  • Administration → Runtime topology — controllers, PostgreSQL and cache checks, pods in the namespace. See Dashboard.
  • Dashboard — run health and activity per day.
  • Jobs → System — failed syncs and cleanups.
  • Administration → Security → Audit logs — searchable by actor, action, resource or ID; 25–100 per page.

Logs

Controllers and log workers log to standard output; collect them with your cluster's log pipeline. They contain errors and state changes, not credential values. Runner output belongs to runs and is read through Liftway, not from pod logs, because pods are deleted after jobRetentionSeconds.

kubectl -n runway-prod logs deploy/runway --tail=200
kubectl -n runway-prod logs deploy/runway-log-worker --tail=200
kubectl -n runway-prod get events --sort-by=.lastTimestamp