Operational Metrics
Operational metrics are charts of how your integrations run: how many script invocations there were, how many failed, how long they took, and what your team changed along the way.
The team's page also displays how close the team is to its plan's allowances.
Use them to spot a failing or slow script before someone reports it, to check whether a deployment caused harm, and to see when the team is approaching its monthly invocation soft cap. Each workspace has its own Metrics page with charts specific to that workspace.
Key terms
- Invocation
- One run of a script, whatever triggered it.
- Outcome
- How an invocation ended.
Succeeded: It finished without an error.
Failed: It started but didn't finish cleanly, for example, because of a script error or a time-out.
Not run: It was Deined or Dropped, it never started.
In progress: It's queued or still running, so it doesn't have an outcome yet.
- Failure rate
- Failed and not-run invocations, as a share of the invocations that have an outcome. Invocations in progress are not counted.
- p50, p95, p99
- How long invoactions took. Half of them took p50 time or less, 95% took p95 time or less, and 99% took p99 time or less. p95 is a good measure of what is slow but not unusual.
- Bucket
- A slice of the time range, such as one hour or one day. Each bar on a chart is one bucket.
- Invoaction soft cap
- How many invocations per month the team's plan allows. Once the team reaches it, further invocations are denied until the next month. On paid plans, it's a soft cap: it guards against runaway scripts, and we raise it on request, so when the team regularly comes close to it, ask us to raise it. On the Free Trial, it's a hard limit.
Where to find it
- For the team: click Reporting in the side navigation, then Operational metrics. Only team admins can see it.
- For a workspace: open the workspace and click Metrics in the list on the left. Anyone who can open the workspace can see it. Templates don't have one.
Both pages have two parts. Right now, at the top, it displays this month's figures, and the filters don't change it. Over time, below it, it displays charts for the selected time range and other filters.
Right now
| Item | What it tells you |
|---|---|
| Connections, Script invocations this month, Record storage | How much of the plan's allowance the team uses for invocations: that's the soft cap. The bar turns amber at 80% and red once the team is over it. When record storage is full, scripts cannot store new records. |
| Monthly script invocations | Invocations in each of the last 12 months. Ran indicates that the invocations have started. Denied at the limit indicates that the invocation was refused because the team had reached its soft cap or the Free Trial's limit. Once a month reaches a quarter of the soft cap, the soft cap is displayed as a dashed line. This chart goes back further than the charts under Over time. |
| Top Fetch API hosts this month | The hosts your scripts called the most with the Fetch API, rather than through a connector. |
Filter the charts
The filters above the Over time charts apply to the charts below them. The exceptions are noted under Trigger and in A workspace's Metrics.
| Option | Range covered |
|---|---|
| Last hour, Last 24 hours, Last 7 days, Last 30 days, Last 90 days, Last 180 days | Up to now. The default is Last 7 days. |
| Today | From midnight in your time zone up to now. |
| This month (UTC) | From the start of the current calendar month in UTC up to now: the same month as Right now. |
| Previous month (UTC) | The whole of last calendar month in UTC. |
| Custom | A From and To date and time you pick. |
The charts go back 180 days. Nothing older can be displayed.
Trigger
Narrows the invocations to one kind of trigger: Event listeners, Scheduled triggers, Manual runs, Chained or Event listener tests. Chained is a script triggered by another script. It always counts as Chained, not under whatever triggered the first script. Event listener tests are test runs of an event listener from the web app.
The trigger filter changes only the invocation charts. Team activity and AI agent are not about invocations, so they stay the same.
Bucket size
Auto picks a size that suits the time range, such as 6 hours for 7 days. Pick a smaller size to see more detail, or a larger one to see the trend. The sizes offered depend on the range. The filter bar says how many buckets the charts have.
Environment
On a workspace's Metrics page only: All environments, or Selected environment, which is the environment selected in the workspace. If you select another environment in the workspace, the charts follow it.
Share a view
The filters are part of the page's address, so you can copy the link to share them. The person you send it to sees the same filters and the figures they're allowed to see. A Last… range moves on with time, so they see the latest figures for it. The team's page opens for the team they have selected, so check that they have the same team selected.
Invocations over time
| Chart | What it tells you |
|---|---|
| The five tiles: Invocations, Success rate, Failed, Not run (denied or dropped), p95 (response time) | Totals for the time range. Under each one, the change against the time range of the same length just before it, green when it got better and red when it got worse. |
| Script invocations by outcome | Invocations in each bucket, stacked by outcome, with the failure rate as a line on the right. Switch from Grouped to Every failure type to split failures into Script error, Runtime error, Timed out, Malformed payload, Aborted, Other outcome, Denied and Dropped. Dashed lines with a ▼ mark the buckets in which someone deployed a release, so you can see whether failures started with a change. |
| Response times | The p50, p95 and p99 in each bucket. Invocations that were denied, dropped or are still running are left out. A gap in a line is a bucket in which nothing ran. |
Top 10 workspaces
The workspaces that ran the most, for the same filters as the charts above. Pick how to rank them:
- Volume: the most invocations.
- Failures: the most failed and not-run invocations. A good place to start when something needs fixing.
- Failure rate: the highest failure rate.
- p95: the slowest.
Failure rate and p95 rank only workspaces with at least 20 invocations, so a workspace that ran twice and failed once doesn't top the list.
Each workspace has a bar of its outcomes and a bar of its response times: the bar runs from p50 to p95, and the dot is p99.
Volume over time below them, displays each workspace's invocations per bucket, and the rest of the team's as Other. Deleted workspaces still count, marked Deleted.
Invocation patterns
| Chart | What it tells you |
|---|---|
| When invocations run | A grid of weekdays by hours in your time zone. Switch between Invocations, to find busy and quiet hours (a good time for a heavy scheduled trigger), and Failure rate, to find an hour that keeps failing. Hover over a square for its figures. |
| Event queue wait | How long invocations waited in an event queue before they started, and the longest wait. Displayed when some invocations went through an event queue. |
| Why invocations did not run | The reasons invocations were denied or dropped, most common first. |
Team activity
What the team changed, taken from the audit log and stacked by area, such as Workspace: scripts, Connectors or Members. The areas are the same as in the audit log's filter. Only changes count; viewing something, triggering a script, locking a workspace, and signing in are left out.
- Made through splits the changes into those made in the Web app, through the Public API (the REST API) and by the AI agent (the embedded agent).
- Most active members lists who made the most changes. Hover over a name to see the member's email address.
AI agent
How the team used the embedded agent, the AI agent built into the web app. It's displayed only where the embedded agent is available to your team.
- Runs and Tokens: how many times the agent ran and how many tokens it used, with the change against the time range before.
- Spend vs previous range: how the team's spend on the agent changed. The page never displays an amount.
- How runs ended: for example Completed, Asked a question, Stopped or Failed.
- Members who used it most: each member's runs and tokens, and their share of the team's tokens and spend.
Metrics page
A workspace's Metrics page has the same filters and charts as the team's page, for that workspace only. The differences:
- Right now displays this month's invocations in the workspace (how many ran and how many didn't), what the workspace has (environments, scripts, API connections, event listeners, scheduled triggers and event queues) and its top Fetch API hosts. Plan usage is the team's, so it's only on the team's page.
- Top 10 scripts replaces Top 10 workspaces. Clicking a script's name opens it.
- Workspace activity counts changes to the whole workspace, whichever environment the filter displays. Team admins see everyone's changes. Everyone else sees only their own.
- There's no AI agent section.
Important to know
- Time zones: Buckets, Today and When invocations run follow your browser's time zone. Right now and the month options follow the calendar month in UTC. So, on a month option, the first or last bucket can hold part of a day outside the month. The page says so when it does.
- A custom range with nothing to display (one that ends before it starts, is in the future or is older than 180 days) displays the last 7 days instead, with a warning.
- The Failure rate isn't due only to script errors. It includes invocations that were denied or dropped and never started. Use Every failure type to tell them apart.
- A "vs previous" is missing message displays when there's nothing to compare with, such as when nothing ran before, or on Last 180 days, whose previous range is older than the charts go back.
- View as table, on every chart, lists the figures behind it, for a screen reader or to copy them.
Best practice
- Check after a deployment. Compare the failure rate and the p95 on either side of the deployment marker.
- Fix the biggest problem first. Rank Top 10 workspaces or Top 10 scripts by Failures, then open the script invocation logs for the details.
- Ask for a raise in time. If Monthly script invocations is getting close to the dashed line month after month, ask us to raise the soft cap before the team reaches it and invocations start to be denied. Top 10 workspaces tells you where the invocations come from.