Monitoring And Runtime Health
Operations in Klok should answer two questions quickly: is the platform healthy, and is this business flow working?
Where To Look In klok.dev
| Page | What it shows |
|---|---|
| Run → Process runs | The runs of every process in the tenant, with the failed, stale and overdue ones first. The Runs tab filters by process, status, time and correlation id, and a run's page shows its steps, its error and its events |
| Run → Logs | Klok's transactions as they happen: how many start each minute, the latest ones in every environment, the failed and the hung ones, every event of a transaction by its correlation id, and Kloker's analysis of each failure. See Logs |
| Run → Broker | Every topic of a namespace, live: backlog, rates, subscriptions, concurrency, dead letters and grants. See The Broker In klok.dev |
| Broker → Health | The broker's figures summed over every namespace you may see, with the backlogs that no consumer reads and the dead-letter queues that hold messages |
| Run → Repositories | Every repository of the tenant with its last pipeline, its open merge requests, and whether what is deployed was built from the last main pipeline |
| Tenant → Environment doctor | What the tenant's environment has and lacks in GitLab, Vault, Keycloak, the broker and the cluster, and who fixes each item. It changes nothing. For a TenantAdmin and platform staff |
Process runs read the tenant's own task API, which only tenant klok has today (frontend-klok-dev#64). klok.dev shows no workload health in production yet, because it has no rights in the cluster (klok-environment-setup#34).
klok.dev follows tenant klok's log events so far; every tenant's is
frontend-klok-dev#51. Until then another tenant
finds its transactions in OpenSearch Dashboards (https://logs.klok.dev).
Use the context graph (Build → Context graph) to understand topology and impact. Use Run → Logs for the last days and OpenSearch Dashboards for any search further back, the console lines and audit. Use the broker pages for subscriptions, backlog and topic state.
What To Monitor
| Signal | Why It Matters |
|---|---|
| Route liveness | Confirms services are running |
| Topic backlog | Shows consumers are falling behind |
| DLQ growth | Indicates poison messages or persistent target failures |
| Retry volume | Shows transient instability or downstream throttling |
| Failure events | Gives standardized failure notifications |
| Correlation completion | Confirms a business flow finished |
| Latency | Shows whether SLR is met |
| Context freshness | Shows whether docs and graph reflect current code |
Healthy Flow
Operational Ownership
Each integration should have clear ownership:
- Business owner for priority decisions.
- Domain owner for data contract decisions.
- Technical owner for route implementation.
- Operator or support group for incidents.
- Security owner for access and secrets.
A monitor without an owner becomes noise.
Alerts And Monitors
How to be told when an integration fails, hangs or does not run, from klok.dev to monitors of your own in OpenSearch Dashboards: Monitoring And Alerts, Alerting By Integration Pattern and Finding And Searching Logs In OpenSearch Dashboards.