Appearance
Grafana
This guide builds the three tiles from the Recipes as a Grafana dashboard, using the Infinity data source. The tiles are due and overdue checks, completed against scheduled, and open actions. The dashboard refreshes itself, so it suits a screen on the factory floor.
You need Grafana 10.2 or later (Grafana Cloud works too), permission to install plugins and add data sources, and an API key with hierarchy:read, checks:read and actions:read. See Getting Started.
1. Install Infinity
In Grafana, open Administration → Plugins and data → Plugins, search for Infinity, and select Install. On a self-hosted Grafana, you can instead run grafana cli plugins install yesoreyeram-infinity-datasource and restart Grafana.
2. Add the Data Source
- Open Connections → Data sources → Add new data source and choose Infinity.
- Name it
Continual. - In the Authentication section, set Auth type to Bearer Token and paste your API key into Bearer token. Grafana stores it encrypted and sends it as
Authorization: Bearer …. - In the same section, under Allowed hosts, add
https://api.continualapp.com. Infinity only sends the token to allowed hosts. - Select Save & test.
With the Backend parser used below, every request is made by the Grafana server. The key never reaches a viewer's browser.
3. Create the Dashboard
Create a new dashboard. In Dashboard settings, set:
- Timezone to your factory's time zone, for example
Australia/Melbourne. - Auto refresh to
5m.
Then set the dashboard's time range to Today so far. Tile 1 uses it for "missed today"; tile 2 sets its own range.
For every query below, choose the Continual data source and set Type to JSON, Parser to Backend, Source to URL, Format to Table and Method to GET. Then fill in the URL, Rows/Root and Columns as shown.
The Lines Query
Summaries return line IDs. Tiles 1 and 3 add this query to label them:
| Setting | Value |
|---|---|
| URL | https://api.continualapp.com/public/v1/lines?include_archived=true&limit=500 |
| Rows/Root | data |
| Columns | id as line_id (String), name as Line (String) |
Both tiles then use a Merge transformation. It combines the queries into one table, matching rows on the shared line_id column. If you have more than 500 lines, add &factory_id=… to the URL and build one dashboard per factory.
4. Tile 1: Due and Overdue Checks
Add a Bar chart panel with four queries.
Query A, due now (recipe):
| Setting | Value |
|---|---|
| URL | https://api.continualapp.com/public/v1/check-instances/summary?status=due&group_by=line_id |
| Rows/Root | groups |
| Columns | line_id (String), count as Due now (Number) |
Query B: the lines query.
Query C, missed today (recipe), checks that closed without a result:
| Setting | Value |
|---|---|
| URL | https://api.continualapp.com/public/v1/check-instances/summary?status=missed&origin=scheduled&check_kind=cil,centreline&include_archived=false&due_from=${__from:date:iso}&due_to=${__to:date:iso}&group_by=line_id |
| Rows/Root | groups |
| Columns | line_id (String), count as Missed today (Number) |
Query D, overdue now (recipe):
| Setting | Value |
|---|---|
| URL | https://api.continualapp.com/public/v1/check-instances/summary?status=overdue&group_by=line_id |
| Rows/Root | groups |
| Columns | line_id (String), count as Overdue now (Number) |
${__from:date:iso} and ${__to:date:iso} send the dashboard's time range. With Today so far and the dashboard set to your factory's time zone, that is your factory's midnight until now.
Add two transformations:
- Merge.
- Organize fields: hide
line_id.
In the panel options, set Orientation to Horizontal and X Axis to Line. Lines with nothing due, overdue or missed appear with no bars. To hide them, add a Filter data by values transformation that excludes rows where all three counts are null.
5. Tile 2: Completed Against Scheduled
Add a Time series panel with one query, the portal's headline completion rate per day (recipe):
| Setting | Value |
|---|---|
| URL | https://api.continualapp.com/public/v1/check-instances/summary?origin=scheduled&check_kind=cil,centreline&include_archived=false&group_by=due_date |
| Rows/Root | groups |
| Columns | due_date as Day (Timestamp), completion_rate as Completion rate (Number), count as Scheduled (Number) |
With no due_from, the API returns the last 30 days. Under Query options, set Relative time to 30d so that the panel's axis also shows 30 days, whatever the dashboard's range.
In the panel options, set Standard options → Unit to Percent (0-100), Min to 0 and Max to 100. Add an override for Scheduled that hides it from the graph, or that moves it to a right-hand axis.
A day with no completed or missed checks has a null rate and shows as a gap, not as 0%. For a different period, add &due_from=…&due_to=… with fixed timestamps, up to 366 days apart.
Why not ${__from} here?
Grafana's ${__from} and ${__to} always follow the dashboard's time range, not a panel's relative-time override. So this panel lets the API choose its 30 days, rather than using the macros.
6. Tile 3: Open Actions
Add a Table panel with two queries.
Query A, open actions (recipe):
| Setting | Value |
|---|---|
| URL | https://api.continualapp.com/public/v1/actions/summary?status=open,pending_verification&group_by=line_id,category |
| Rows/Root | groups |
| Columns | line_id (String), category as Category (String), count as Open (Number) |
Query B: the lines query.
Add transformations:
- Merge.
- Filter data by values: Exclude rows where
OpenIs null. Merge keeps every line from query B, so this drops lines that have no open actions. - Organize fields: hide
line_id, and dragLineto the top. - Sort by:
Line.
Manual actions have no category. To label them, add an override for the Category field with a Value mapping of type Special, matching Null, with the display text Manual.
For a single headline number, add a Stat panel with query A only, and set its calculation to Total on Open.
7. Save
Save the dashboard. Each refresh makes seven requests, so a 5-minute refresh is well within the rate limits. Summary responses are cached for up to 2 minutes, so refreshing more often than that doesn't give fresher numbers.
Troubleshooting
Open Query inspector → Data on a panel to see the raw response.
| Symptom | Cause |
|---|---|
401 | The key is wrong, expired or revoked, or Auth type isn't Bearer Token. |
403 | The key's client lacks a permission. The lines query needs hierarchy:read. |
| The request is refused before it's sent | https://api.continualapp.com isn't in Allowed hosts. |
422 on the missed panel | The dashboard's range is longer than 366 days. |
| Empty panels | Rows/Root must be groups for summaries and data for lists. |
| Rows repeat, or line names are missing | Use Merge, not Join by field, and check every query names its line column line_id. |
| Open actions lists lines with a blank count | Add the Filter data by values step from tile 3. |
| "Missed today" shows weeks of misses | The dashboard's range isn't Today so far. |