What FlowAssembly reports¶
Made from src/flowassembly/telemetry/catalogue.yaml by fa telemetry catalogue; do not edit by hand.
Log events¶
Every line is one JSON object with time, level, event, service and version, and whichever of request_id, user, project, process_id, release, case_id, task_id, job_id, trace_id, span_id apply. Lines never carry case data values, only field names, and any secret is shown as [hidden].
Event |
Level |
What it means |
Fields |
Watch for |
|---|---|---|---|---|
|
info |
A background service started its main loop. |
|
|
|
info |
A background service stopped, after finishing its current pass. |
none |
|
|
error |
One pass of a background service failed; the next pass will try again. |
none |
Repeated failures mean the service cannot do its work (see fa_service_passes_total). |
|
warning |
A background service could not record that it is alive, so Admin may show it as quiet; its work goes on. |
none |
Usually the database was unreachable for a moment; if it repeats, check the service’s database connection. |
|
info |
A service read its instance settings. from_secret_store counts the secrets read from Vault or OpenBao. |
|
|
|
info |
The web server answered a request. |
|
|
|
warning |
The web server is not ready, usually because the database cannot be reached. |
|
|
|
info |
Someone signed in. |
|
|
|
warning |
Separation of duties withheld permissions from someone whose roles would have given them permissions a rule keeps apart. |
|
Someone holds roles they should not hold together; an administrator decides which they keep. |
|
warning |
A sign-in was refused, throttled, or the directory was unavailable. |
|
Many refusals for one person or address can mean someone is guessing passwords. |
|
info |
A case started. |
none |
|
|
info |
A case reached its end. |
|
|
|
info |
A supervisor suspended a case; its tasks, automatic steps and timers wait. The reason is in its history. |
none |
|
|
info |
A supervisor resumed a suspended case. |
none |
|
|
info |
A supervisor cancelled a case; its open work was removed. The reason is in its history. |
|
|
|
info |
Someone commented on a case or one of its tasks. The comment is in the case’s history, not the log. |
|
|
|
info |
Someone completed a task. |
|
|
|
info |
A task was past the time its process gives it, so the scheduler told a role or moved the task to one, as the process’s deadline says. |
|
|
|
info |
Someone’s time out of office began, so a task they held passed to the colleague they chose, or back to its team queue where the colleague does not hold its role. |
|
|
|
info |
A task submission was refused, by the form’s rules or because the person may not do it. |
|
|
|
info |
A decision table was applied; the rule that matched explains the result. |
|
|
|
info |
A timer in a case fired. |
|
|
|
info |
A message, from another system or another process, reached a waiting case. |
|
|
|
warning |
A message arrived that no case was waiting for and no process starts with; it was refused. |
|
The sending system may be sending too early, to the wrong project, or with the wrong reference. |
|
info |
Another system posted a message to its webhook, signed with the key; it reached a waiting case, started one, or repeated an earlier post. |
|
|
|
warning |
A post to a message’s webhook was refused, because its signature did not match, it was too old, or it was not JSON. |
|
Many in a row mean the sender’s key and the instance’s secret differ, the clocks differ by over five minutes, or someone is trying the address. |
|
info |
The connector worker took a message from another system’s queue; it reached a waiting case, started one, or repeated an earlier message. |
|
|
|
warning |
A message taken from a queue was rejected, not requeued, because it was not JSON, no case was waiting for it and no process starts with it, or the case refused it; a queue with a dead-letter exchange keeps it. |
|
Unmatched messages mean the other system sends before the case waits, or to the wrong project. |
|
warning |
The connector worker could not take messages from a queue, because the broker could not be reached, refused the account, or has no such queue; it tries again on its next pass. |
|
Messages wait on the queue until this is put right. |
|
info |
The scheduler started a case of a process that starts on a schedule. |
|
|
|
warning |
A scheduled case could not be started, for example because the process needs data to start with; the schedule moves on to its next time. |
|
Each failure is a scheduled case that did not happen; fix the process before its next time. |
|
info |
A message arrived before the case it is for was waiting for it, and is kept for that case until it waits or the message’s keep runs out. |
|
|
|
warning |
A kept message ran out before any case waited for it, and was forgotten. |
|
The case it was for may never reach its wait, or the sender used a reference no case has. |
|
info |
A message one case sent reached a waiting case of another process, or started one. |
|
|
|
warning |
A message one case sent found no case waiting for it and no process to start, or the receiver refused it. |
|
The receiving case may not be waiting yet, or the two processes disagree about the reference that matches them. |
|
info |
A background step finished. |
|
|
|
warning |
A background step failed and will be tried again. |
|
|
|
error |
A background step failed for good and waits for a supervisor. |
|
Each one needs a person to look at it (Supervision page, fa_failed_jobs). |
|
info |
A connector worker started, running FlowAssembly’s own connector types and those its settings switch on (connectorTypes); installed lists the installed ones it does not run. |
|
|
|
warning |
An installed connector type package could not be used, because it would not load, is not a ConnectorType, or takes a name already used; projects using it fail with a clear reason. |
|
|
|
info |
A connection to another system was used. |
|
|
|
info |
A connection asked its token server for a new access token. |
|
|
|
warning |
An API refused a token before it expired, so the connection got a new one. |
|
|
|
info |
A release became the one new cases of its project start on. |
|
self_approved true means its author approved it; expected only where the trust file allows it. |
|
warning |
A project went back to the release that was active before. |
|
|
|
info |
A plugin’s page called the plugin’s own API. |
|
|
|
info |
Audit events were sealed onto the hash chain. The newest place and chain value, kept in logs apart from the database, are the external seal that fa audit verify –head checks against. |
|
|
|
info |
Audit events older than the organisation keeps them were removed, oldest first; the chain is checked from after them. |
|
|
|
info |
Cases that ended longer ago than the organisation keeps them were removed, with their files and the evidence of what they sent. |
|
|
|
warning |
A project was archived, so it starts no new cases; cases under way carry on. |
|
|
|
warning |
A deployment was refused, for example for a missing or invalid approval or a bundle that does not verify. |
|
A refusal in production nobody expected can mean someone tried to deploy around the approval. |
|
info |
Someone moved running cases to another release of their project. refused counts the cases that could not move, which stay as they were. |
|
|
|
info |
Someone undid a move. kept counts the cases that changed after they moved, which stay on the new release. |
|
|
|
info |
An environment had no trust yet, so the instance adopted the trust file it was given. From then on a change to it needs an approver’s signature. |
|
An adoption outside setting up an environment, or after fa trust reset, deserves a look. |
|
info |
The trust an environment accepts changed, signed by an approver the earlier trust listed. revoked counts the keys newly revoked. |
|
|
|
warning |
Someone with the database’s credentials set aside an environment’s trust, so the next trust file deployed is adopted as it is. Meant for when every approver key is lost. |
|
Always worth asking who and why. |
|
info |
Someone added a file to a case while working on a task, or an automatic step brought one back from another system; it was checked for type, size and viruses, and kept encrypted. Never the file’s name or content. |
|
|
|
info |
An automatic step made a PDF document from its template and the case’s data, and kept it with the case. Never the document’s content. |
|
|
|
warning |
A file was not kept, because of its type, its size, a virus, or because the virus scanner could not be reached. |
|
reason virus means someone tried to add a harmful file; reason scanner means files cannot be added until the scanner answers. |
|
warning |
A step sent an email or a message, but the copy of what it sent could not be kept in the file store; its fingerprint is kept. |
|
The file store (volume or bucket) may be full or unreachable; evidence of what is sent is missing until it is put right. |
|
info |
The scheduler emailed someone that a task came to them, was moved away from them or is overdue; or found they have no address, do not want this kind emailed (not_wanted), or are out of office (away). |
|
|
|
info |
The scheduler cleared notices older than the organisation keeps them (Admin > Settings > Data retention). |
|
|
|
info |
Someone exported a report’s rows as CSV (cases or tasks); the audit log says who and for which projects. |
|
|
|
warning |
Emailing a notice failed; it is tried again on later passes, up to five times, and is always shown in the web application. |
|
Repeated failures usually mean the mail server is unreachable or refuses the instance’s sign-in. |
Spans¶
Sent to an OpenTelemetry collector when tracing.endpoint is set. A request’s span contains its case actions; a background step continues the trace of the action that created it; a timer starts a new trace linked to the one that set it. Calls to other systems carry the traceparent header.
Span |
Kind |
What it covers |
Attributes |
|---|---|---|---|
|
server |
The web server handling one request; named after its method and route. |
|
|
internal |
Starting a case, running it to its first wait. |
|
|
internal |
Checking and storing a task someone completed, and running the case on. |
|
|
consumer |
A worker running one background step. |
|
|
internal |
Storing a background step’s result and running the case on. |
|
|
client |
A call to another system, which receives the trace context too. |
|
|
client |
A request to a token server for an access token. |
|
|
internal |
The scheduler firing a case’s due timers; linked to the trace that set them. |
|
|
internal |
Delivering a message to a waiting case. |
|
|
internal |
Passing on a message a case sent, to the case waiting for it or a process it starts. |
|
|
client |
One statement sent to PostgreSQL (database detail). The text is FlowAssembly’s own SQL; values are never recorded. |
|
|
client |
A statement that can wait for another transaction’s lock, such as a case’s row while someone else changes the case (database detail). |
|
|
internal |
Waiting for a free connection from this process’s pool (database detail). |
none |
|
internal |
Reading a release’s diagrams, the first time a process of it runs in this process (engine detail). |
|
|
internal |
Rebuilding a case from its stored state before acting on it (engine detail); the size is in characters. |
|
|
internal |
The workflow engine running a case’s steps until it waits (engine detail). |
|
|
internal |
Working out a decision table inside a case action (engine detail). |
|
|
internal |
Turning a case into the state that is stored (engine detail); the size is in characters. |
|
Metrics¶
Served in the Prometheus text format at /metrics on the web service and on the health port of the worker and scheduler, with the metrics token as a bearer token.
Metric |
Type |
What it measures |
Labels |
Watch for |
|---|---|---|---|---|
|
counter |
Main loop passes of background services, by outcome. |
|
Failed passes rising means a service cannot do its work. |
|
counter |
Background steps by kind and outcome. |
|
|
|
counter |
Timers fired by the scheduler. |
none |
|
|
counter |
Overdue tasks the scheduler escalated, by project. |
|
A steady rise means a team has more work than time; look at its deadlines and who holds its role. |
|
counter |
Tasks passed on because the person holding them is out of office, by project and where they went (colleague or queue). |
|
Many going to the queue means people choose colleagues who do not hold the same roles, or choose nobody; the team’s queue has their work. |
|
histogram |
On Kubernetes, how long a script’s pod took from being asked for to fetching its job. |
none |
Slow starts add to every script step; the image may be pulled each time, or the cluster short of room. |
|
counter |
Web requests by route, method and status. |
|
A rising share of 5xx statuses means the web service is failing. |
|
histogram |
How long web requests take, by route. |
|
Slow requests make every page feel slow. |
|
counter |
Sign-in attempts by outcome. |
|
A burst of refused or throttled sign-ins can mean password guessing. |
|
counter |
Cases started, by project and process. |
|
|
|
counter |
Cases that reached an end, by project, process and the end they reached. |
|
|
|
counter |
Tasks people completed, by project, process and task. |
|
|
|
histogram |
How long tasks waited for someone, from opening to completion. |
|
Long waits at one task show where a process is held up. |
|
counter |
Task submissions the form’s rules refused, by project and form. |
|
Many refusals on one form can mean its rules or wording confuse people. |
|
counter |
Messages from other systems, by whether they reached a waiting case, started one, or matched nothing. |
|
Unmatched messages mean another system is sending what no case expects. |
|
counter |
Posts to messages’ webhooks, by whether they reached a waiting case, started one, repeated an earlier post, matched nothing, or were refused. |
|
Refused posts point at a key or clock mismatch with the sender; unmatched ones at a sender ahead of the case. |
|
counter |
Messages taken from other systems’ queues, by whether they reached a waiting case, started one, repeated an earlier message, matched nothing, were refused, or were not JSON. |
|
Unmatched or refused messages are rejected; look at the queue’s dead-letter exchange. |
|
counter |
Cases started on a schedule, by process and whether they started or failed. |
|
A failed outcome is a scheduled case that did not happen. |
|
counter |
Kept messages, by whether they reached the case they were kept for, were refused by it, or ran out first. |
|
Expired messages mean a case never waited for what was sent to it. |
|
counter |
Messages cases sent for other processes, by whether they reached a waiting case, started one, matched nothing, or were refused. |
|
Unmatched or refused messages mean two processes are out of step; the sending case’s history says which message. |
|
counter |
Documents made by automatic steps, by project and template. |
|
|
|
counter |
Files added to cases, by project and outcome (added, or why one was refused - type, size, virus, scanner). |
|
Any virus outcome is worth a look; scanner outcomes mean the virus scanner is not answering. |
|
counter |
People told that a task came to them (“received”) or was moved away from them (“moved”), by project. |
|
|
|
counter |
Notice emails, by outcome (sent, no_address, not_wanted, away, retrying or failed). |
|
Many no_address outcomes mean the directory lacks email addresses for people who work tasks. |
|
counter |
Notices cleared because they were older than the organisation keeps them. |
none |
Nothing cleared for weeks on a busy instance means the scheduler is not running its passes. |
|
counter |
Reports exported as CSV, by report (cases or tasks). |
|
|
|
counter |
Decisions made, by decision and the rule that matched (“fallback” when none did). |
|
|
|
counter |
Calls to other systems, by connection, operation and outcome. |
|
Failures rising for one connection usually mean that system is down or refusing us. |
|
histogram |
How long calls to other systems take. |
|
|
|
counter |
Access token requests to token servers, by connection and outcome. |
|
|
|
gauge |
Open tasks waiting for people, by project. |
|
|
|
gauge |
Background steps waiting or running, by project. |
|
|
|
gauge |
Background steps waiting for a supervisor, by project. |
|
Anything above zero needs a person (Supervision page). |
|
gauge |
How long the oldest open task has waited, by project. |
|