API monitoring on several stands: Test, Stage and production
Monitors for Test, a copy for Stage, another one for production — and a week later the copies drift apart: a condition was fixed in one and forgotten in another. Microkoi Bench checks one folder of monitors on every stand and compares the responses with a reference. The status line says it right away: “Down on Stage”.
Why copies of monitors drift apart
A delivery app calls the cart, the menu and addresses on three stands. Twelve monitors per stand makes thirty-six monitors to edit three times over. A new condition was added on Test, it never reached Stage, and Stage is “up” even though it already answers differently.
A stand in Bench is a workspace environment. A monitor is written once with a {{baseUrl}} variable, and the folder decides which environments to check it on.
Give the folder its stands
- In Monitoring, open the “⋯” menu on the folder and choose “Folder…”.
- In the “Stands” section, click “Add stand” and pick the Test environment, then Stage and Prod.
- Turn off the “On schedule” switch for a stand you only want to check manually, such as production.
- Click “Save”.
Each stand row shows its address, for example baseUrl = https://stage.api.example.com, so the difference between stands is visible at once. The first stand is marked “Reference”: the response models of the others are compared with it. Drag rows to reorder. A folder can have up to five stands.
- A nested folder without its own stands checks monitors on the stands of the folder above. “Set own” gives it its own list.
- A monitor with its own environment is checked only on that environment, even if the folder has stands.
- You can give an empty folder its stands in advance and create the monitors later.
What a monitor looks like on stands
In the tree, the monitor gets a column per stand with a dot for its status, with the stands’ first letters above the columns. The dot left of the name is the worst status among scheduled stands. In the card, a stand switcher sits under the name, and the status line covers all of them at once: “Down on Stage” or “Up on all stands”.
Everything below the switcher — the address, the error reason, the chart, “Analytics”, “Incidents” and “Checks” — belongs to the selected stand. With nothing selected, the card opens on the first failed stand, or on the reference if none failed.
Check every stand by hand
A “Stands: all” button appears next to “Check all”. It picks where manual checks run: “All stands” or “Selected”. The choice applies to “Check all”, folders and individual monitors, so a check is still a single click.
When a check covers several stands, a “Run results” window opens: monitors in rows, stands in columns. A cell shows the response time, a status code or error reason in red, and a number of fields in blue if the model differs from the reference. Click a cell to open the monitor on that stand.
| Monitor | Test | Stage | Prod |
|---|---|---|---|
| Cart | 180 ms | 502 | 210 ms |
| Restaurant menu | 240 ms | 3 fields | 260 ms |
| Delivery addresses | 95 ms | 110 ms | — |
A dash means the stand wasn’t checked in this run. A check on a stand without a schedule writes history but doesn’t open incidents or send notifications.
Stand models differ
Each stand builds its own response model. If Stage differs from the reference, the card shows a “Stand models differ” bar: the endpoint, “Stage vs reference Test · 3 fields” and a table with each field and its type on the reference and on Stage. A field missing on the stand is marked “missing”.
“Open both responses” puts the latest successful response of each stand side by side. If Stage just failed and returned a 502 error page, its previous successful response is compared, not the error page.
Stands in analytics, reports and notifications
- “Analytics” in the card counts the selected stand and names it in the title: “Analytics · Stage”.
- In the “Export report” window, the “Stand” field builds a report for one stand or for all at once — a row per monitor per stand, worst first.
- The notification names the stand: “Cart · Stage” is down. A click opens the monitor right on that stand.
Update Bench for everyone working in a shared workspace: earlier versions don’t see folder stands and won’t open an archive with stands.
What you get
Twelve monitors instead of thirty-six, one condition instead of three copies. A stand drifting from the reference shows up within the hour, not when a tester stumbles on it on Stage.
Give a monitor folder its stands in beta 0.9.6 and write to beta@microkoi.com about how many monitor copies you were able to remove. We read every email.