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

service.started

info

A background service started its main loop.

interval_seconds, health_port

service.stopped

info

A background service stopped, after finishing its current pass.

none

service.pass_failed

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).

service.heartbeat_failed

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.

config.loaded

info

A service read its instance settings. from_secret_store counts the secrets read from Vault or OpenBao.

settings, secrets_available, from_secret_store

request.completed

info

The web server answered a request.

method, route, status, duration_ms

readiness.failed

warning

The web server is not ready, usually because the database cannot be reached.

reason

signin.succeeded

info

Someone signed in.

provider

access.withheld

warning

Separation of duties withheld permissions from someone whose roles would have given them permissions a rule keeps apart.

rule, permissions, roles

Someone holds roles they should not hold together; an administrator decides which they keep.

signin.refused

warning

A sign-in was refused, throttled, or the directory was unavailable.

provider, reason

Many refusals for one person or address can mean someone is guessing passwords.

case.started

info

A case started.

none

case.completed

info

A case reached its end.

end

case.suspended

info

A supervisor suspended a case; its tasks, automatic steps and timers wait. The reason is in its history.

none

case.resumed

info

A supervisor resumed a suspended case.

none

case.cancelled

info

A supervisor cancelled a case; its open work was removed. The reason is in its history.

open_work

comment.added

info

Someone commented on a case or one of its tasks. The comment is in the case’s history, not the log.

about

task.completed

info

Someone completed a task.

task, form, fields, waited_seconds

task.escalated

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.

task, overdue_seconds, notified, reassigned_to

task.out_of_office

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.

task, to

task.refused

info

A task submission was refused, by the form’s rules or because the person may not do it.

task, form, reason, problem_fields

decision.made

info

A decision table was applied; the rule that matched explains the result.

decision, rule, step

timer.fired

info

A timer in a case fired.

step

message.delivered

info

A message, from another system or another process, reached a waiting case.

message_name, fields

message.unmatched

warning

A message arrived that no case was waiting for and no process starts with; it was refused.

message_name

The sending system may be sending too early, to the wrong project, or with the wrong reference.

webhook.received

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.

message_name, outcome, receipt

webhook.refused

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.

message_name, reason

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.

queue.received

info

The connector worker took a message from another system’s queue; it reached a waiting case, started one, or repeated an earlier message.

message_name, outcome, receipt

queue.refused

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.

message_name, reason

Unmatched messages mean the other system sends before the case waits, or to the wrong project.

queue.unreachable

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.

connector, problem

Messages wait on the queue until this is put right.

schedule.started

info

The scheduler started a case of a process that starts on a schedule.

due

schedule.failed

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.

reason

Each failure is a scheduled case that did not happen; fix the process before its next time.

message.kept

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.

message_name, until

message.expired

warning

A kept message ran out before any case waited for it, and was forgotten.

message_name

The case it was for may never reach its wait, or the sender used a reference no case has.

message.passed_on

info

A message one case sent reached a waiting case of another process, or started one.

message_name, outcome, cases

message.undelivered

warning

A message one case sent found no case waiting for it and no process to start, or the receiver refused it.

message_name, outcome, reason

The receiving case may not be waiting yet, or the two processes disagree about the reference that matches them.

job.completed

info

A background step finished.

implementation, attempt

job.retrying

warning

A background step failed and will be tried again.

implementation, attempt, error, retry_in

job.dead_lettered

error

A background step failed for good and waits for a supervisor.

implementation, attempt, error

Each one needs a person to look at it (Supervision page, fa_failed_jobs).

connector.types

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.

types, installed

connector.type_refused

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.

problem

connector.called

info

A connection to another system was used.

connector, operation, kind, outcome, status, duration_ms

oauth.token_requested

info

A connection asked its token server for a new access token.

connector, token_server, outcome, duration_ms

oauth.token_refused

warning

An API refused a token before it expired, so the connection got a new one.

connector

release.deployed

info

A release became the one new cases of its project start on.

environment, release_version, self_approved

self_approved true means its author approved it; expected only where the trust file allows it.

release.rolled_back

warning

A project went back to the release that was active before.

environment

plugin.called

info

A plugin’s page called the plugin’s own API.

plugin, method

audit.sealed

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.

count, seq, chain

audit.expired

info

Audit events older than the organisation keeps them were removed, oldest first; the chain is checked from after them.

count, days

cases.expired

info

Cases that ended longer ago than the organisation keeps them were removed, with their files and the evidence of what they sent.

count, files, days

project.archived

warning

A project was archived, so it starts no new cases; cases under way carry on.

environment

release.refused

warning

A deployment was refused, for example for a missing or invalid approval or a bundle that does not verify.

environment, reason

A refusal in production nobody expected can mean someone tried to deploy around the approval.

cases.moved

info

Someone moved running cases to another release of their project. refused counts the cases that could not move, which stay as they were.

to_version, move_id, moved, refused

cases.move_undone

info

Someone undid a move. kept counts the cases that changed after they moved, which stay on the new release.

move_id, undone, kept

trust.adopted

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.

environment, trust_version, digest, approved_by, revoked

An adoption outside setting up an environment, or after fa trust reset, deserves a look.

trust.changed

info

The trust an environment accepts changed, signed by an approver the earlier trust listed. revoked counts the keys newly revoked.

environment, trust_version, digest, approved_by, revoked

trust.reset

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.

environment, trust_version, digest, approved_by, revoked

Always worth asking who and why.

file.added

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.

field, media_type, size

document.generated

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.

document, size

file.refused

warning

A file was not kept, because of its type, its size, a virus, or because the virus scanner could not be reached.

field, reason

reason virus means someone tried to add a harmful file; reason scanner means files cannot be added until the scanner answers.

evidence.not_kept

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.

problem

The file store (volume or bucket) may be full or unreachable; evidence of what is sent is missing until it is put right.

notice.emailed

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).

kind, outcome

notices.cleared

info

The scheduler cleared notices older than the organisation keeps them (Admin > Settings > Data retention).

count, days

report.exported

info

Someone exported a report’s rows as CSV (cases or tasks); the audit log says who and for which projects.

report, rows, days

notice.email_failed

warning

Emailing a notice failed; it is tried again on later passes, up to five times, and is always shown in the web application.

kind, reason, attempts

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

http.request

server

The web server handling one request; named after its method and route.

http.request.method, http.route, http.response.status_code

case.start

internal

Starting a case, running it to its first wait.

flowassembly.project, flowassembly.process, flowassembly.case_id

task.submit

internal

Checking and storing a task someone completed, and running the case on.

flowassembly.case_id, flowassembly.task

job.run

consumer

A worker running one background step.

flowassembly.case_id, flowassembly.job_id, flowassembly.implementation

job.complete

internal

Storing a background step’s result and running the case on.

flowassembly.case_id, flowassembly.job_id

connector.call

client

A call to another system, which receives the trace context too.

flowassembly.connector, flowassembly.operation, http.response.status_code

oauth.token

client

A request to a token server for an access token.

flowassembly.connector, server.address

timer.fire

internal

The scheduler firing a case’s due timers; linked to the trace that set them.

flowassembly.case_id

message.deliver

internal

Delivering a message to a waiting case.

flowassembly.case_id, flowassembly.message

message.send

internal

Passing on a message a case sent, to the case waiting for it or a process it starts.

flowassembly.case_id, flowassembly.message

db.query

client

One statement sent to PostgreSQL (database detail). The text is FlowAssembly’s own SQL; values are never recorded.

db.system.name, db.operation.name, db.query.text

db.lock

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).

db.system.name, db.operation.name, db.query.text

db.connection

internal

Waiting for a free connection from this process’s pool (database detail).

none

engine.parse

internal

Reading a release’s diagrams, the first time a process of it runs in this process (engine detail).

flowassembly.process

engine.restore

internal

Rebuilding a case from its stored state before acting on it (engine detail); the size is in characters.

flowassembly.process, flowassembly.state_size

engine.run

internal

The workflow engine running a case’s steps until it waits (engine detail).

flowassembly.process

engine.decide

internal

Working out a decision table inside a case action (engine detail).

flowassembly.decision

engine.save

internal

Turning a case into the state that is stored (engine detail); the size is in characters.

flowassembly.process, flowassembly.state_size

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

fa_service_passes_total

counter

Main loop passes of background services, by outcome.

service, outcome

Failed passes rising means a service cannot do its work.

fa_jobs_total

counter

Background steps by kind and outcome.

kind, outcome

fa_timers_fired_total

counter

Timers fired by the scheduler.

none

fa_tasks_escalated_total

counter

Overdue tasks the scheduler escalated, by project.

project

A steady rise means a team has more work than time; look at its deadlines and who holds its role.

fa_tasks_passed_out_of_office_total

counter

Tasks passed on because the person holding them is out of office, by project and where they went (colleague or queue).

project, to

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.

fa_script_pod_start_seconds

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.

fa_http_requests_total

counter

Web requests by route, method and status.

route, method, status

A rising share of 5xx statuses means the web service is failing.

fa_http_request_duration_seconds

histogram

How long web requests take, by route.

route

Slow requests make every page feel slow.

fa_sign_ins_total

counter

Sign-in attempts by outcome.

outcome

A burst of refused or throttled sign-ins can mean password guessing.

fa_cases_started_total

counter

Cases started, by project and process.

project, process

fa_cases_completed_total

counter

Cases that reached an end, by project, process and the end they reached.

project, process, end

fa_tasks_completed_total

counter

Tasks people completed, by project, process and task.

project, process, task

fa_task_wait_seconds

histogram

How long tasks waited for someone, from opening to completion.

project, process, task

Long waits at one task show where a process is held up.

fa_form_refusals_total

counter

Task submissions the form’s rules refused, by project and form.

project, form

Many refusals on one form can mean its rules or wording confuse people.

fa_messages_received_total

counter

Messages from other systems, by whether they reached a waiting case, started one, or matched nothing.

project, message, outcome

Unmatched messages mean another system is sending what no case expects.

fa_webhooks_received_total

counter

Posts to messages’ webhooks, by whether they reached a waiting case, started one, repeated an earlier post, matched nothing, or were refused.

project, message, outcome

Refused posts point at a key or clock mismatch with the sender; unmatched ones at a sender ahead of the case.

fa_queue_messages_total

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.

project, message, outcome

Unmatched or refused messages are rejected; look at the queue’s dead-letter exchange.

fa_scheduled_cases_total

counter

Cases started on a schedule, by process and whether they started or failed.

project, process, outcome

A failed outcome is a scheduled case that did not happen.

fa_kept_messages_total

counter

Kept messages, by whether they reached the case they were kept for, were refused by it, or ran out first.

project, message, outcome

Expired messages mean a case never waited for what was sent to it.

fa_messages_sent_total

counter

Messages cases sent for other processes, by whether they reached a waiting case, started one, matched nothing, or were refused.

project, message, outcome

Unmatched or refused messages mean two processes are out of step; the sending case’s history says which message.

fa_documents_total

counter

Documents made by automatic steps, by project and template.

project, document

fa_files_total

counter

Files added to cases, by project and outcome (added, or why one was refused - type, size, virus, scanner).

project, outcome

Any virus outcome is worth a look; scanner outcomes mean the virus scanner is not answering.

fa_notices_total

counter

People told that a task came to them (“received”) or was moved away from them (“moved”), by project.

project, kind

fa_notice_emails_total

counter

Notice emails, by outcome (sent, no_address, not_wanted, away, retrying or failed).

outcome

Many no_address outcomes mean the directory lacks email addresses for people who work tasks.

fa_notices_cleared_total

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.

fa_report_exports_total

counter

Reports exported as CSV, by report (cases or tasks).

report

fa_decisions_total

counter

Decisions made, by decision and the rule that matched (“fallback” when none did).

project, decision, rule

fa_connector_calls_total

counter

Calls to other systems, by connection, operation and outcome.

project, connector, operation, outcome

Failures rising for one connection usually mean that system is down or refusing us.

fa_connector_call_seconds

histogram

How long calls to other systems take.

project, connector, operation

fa_oauth_token_requests_total

counter

Access token requests to token servers, by connection and outcome.

project, connector, outcome

fa_open_tasks

gauge

Open tasks waiting for people, by project.

project

fa_pending_jobs

gauge

Background steps waiting or running, by project.

project

fa_failed_jobs

gauge

Background steps waiting for a supervisor, by project.

project

Anything above zero needs a person (Supervision page).

fa_oldest_open_task_seconds

gauge

How long the oldest open task has waited, by project.

project