Documentation
How Know It Broke works
What each part does, what the settings mean and what to do when something looks wrong. Type a word to find it.
Start here
Add your first node
A node is one thing Know It Broke watches: a page, an API, a port, a scheduled job.
- Press Add node on the board and pick a kind.
- Fill in what it asks for. A website needs only its address.
- Press Test it. It runs once, now, and shows what came back. Nothing is saved yet.
- Press Start watching. The first timed run lands within a minute.
Then open Alerts and add a route, so somebody hears when it breaks. A node with no route still shows on the board and the status page, but tells nobody.
The board
Every node is a card. The dot says how it is:
- Green
- Working at its last run.
- Red
- Down. For a change watch, something changed. For a secret, it has run out.
- Amber
- Not checked when it should have been, or a secret that is due for renewal.
- Grey
- Paused, or waiting for its first run.
The bars on a card are its last 40 runs: the taller the bar, the slower the run, and red is a failure. Rest the pointer on one to read it. The percentage is the last 30 days.
Down first puts trouble at the top. It is kept in your browser, so each person picks for themselves.
Arrange the cards by dragging one by the six dots in its corner. On a keyboard, hold Alt and press an arrow key on a card. The order is kept on the account, so everyone sees the same board. With Down first on, a card moves among its own kind: down with down, the rest with the rest.
Find a node looks through names, addresses, kinds, tags and states. Press a tag to see only its nodes. While the board is narrowed you can pause or resume everything showing with one press.
A node's page
Press a card to open it. From there:
- Run now
- Checks it this second. It counts like any other run.
- Edit
- Change its settings. Its history stays.
- Copy
- Makes another the same, secrets and all. The copy starts paused.
- Pause
- Stops checking and alerting until you resume it. History stays.
- Maintenance
- Keeps checking but tells nobody for a while. See Maintenance.
- Clear runs
- Forgets its whole history. This cannot be undone.
- Delete
- Removes it and its history, for good.
Below that are its graphs, its newest runs and its outages. Press the cross on a run to remove one that should not count, such as a run that failed because of us: uptime is worked out again.
Graphs
Each node's page has graphs over 24 hours, 7 days, 30 days, 90 days or 1 year. Rest the pointer on a graph to read a point, tap it on a phone, or Tab to it and use the arrow keys. Show the numbers under a graph gives the same figures as a table.
- Response time
- The line is the typical run. The band runs from quick to slow, leaving out one run in twenty at each end. A red tick marks a stretch that had failures. Only runs that passed have a time here: how long we waited for something that never came says nothing about speed.
- Failed runs
- How many failed in each stretch. A single failure that passed on the second look is here but is not an outage.
- Where the time goes
- For a browser flow, the usual time of each step, so the slow one stands out. For a check made from several places, the time from each.
- When it is slow
- Every hour of the week, over 7 or 30 days. The stronger the colour, the slower. A red dot marks an hour that had failures. Hours are on your account's clock.
- How the times are spread
- How many runs took how long. Two humps usually mean two different things are happening, such as a cache that is sometimes cold.
Graphs in the menu shows every node together over 7, 30 or 90 days: each node day by day with the worst first, failed runs by day, time down by node, response time by node, and the hour of the day outages start.
Single runs are kept 30 days, so past that a graph is a daily average and has no steps, hours or spread.
Internal status page
The screen button beside the light or dark one strips the console to the cards, for a screen left on where a team can see it. Each card also shows its last 30 days. Every node is on it, and the board keeps refreshing itself.
- Move the pointer to the top edge, tap it on a touch screen, or press Tab, and the menu comes back.
- Press Esc to leave.
- /app#wall opens straight into it: the address to bookmark on the wall screen. It needs somebody signed in.
- Cards can be dragged here too. The six dots show when the pointer is on a card, and always on a touch screen. Alt and an arrow key works as well. It is the same order as the board.
It is not public. For a page anyone can open, see The public status page.
Moving from another tool
Press Add node, then Add many at once. Paste the addresses your old tool watched, one a line, with a name after a comma if you like. Each becomes a website node that looks for a 2xx answer every 5 minutes. Lines that could not be used are listed with the reason. 200 lines is the most in one go.
Kinds of node
Website or API
Calls an address and judges the answer. With no checks of your own it passes on any 2xx status. Add checks to ask for more; all of them must pass.
- Status code
200,2xx, a range like200-299, or several with commas.- Body text
- The answer contains some text, or does not. The first 256 KB is read.
- JSON value
- A path like
data.items[0].idis, is not, contains, exists, or is more or less than a value. - Header
- A header is present, is something, or contains something.
- Speed
- Fails if the answer took longer than this many milliseconds.
Under Request details you can set the method, headers, a body, whether to follow redirects, and how long to wait (10 seconds unless you say, 30 at most). Headers and body are stored encrypted. Keep keys in the vault and write their name.
It can run every minute, and from up to three places at once.
Browser flow
A real Chrome works through your steps in order, the way a customer would. It stops at the first step that fails and keeps a picture.
- Open page
- Always the first step. Waits up to 20 seconds and fails on a 4xx or 5xx answer.
- Click
- A CSS selector, or
text=Sign infor a thing with those words. - Type
- Fills a box. What is typed is stored encrypted, and a password shows as dots.
- Press key
- Enter, Tab and so on, on an element or the page.
- See text
- The words must be on the page.
- See element
- The element must be on the page.
- Wait
- A fixed pause. Rarely needed.
Every step except Open page and Wait takes up to 10 seconds to find what it needs and moves on the moment it is there. So a fixed Wait in front of a See step only makes each run longer. The editor points those out and offers to remove them.
Pictures, video and fonts are not fetched. Up to 20 steps, every 5 minutes at the fastest. A flow leaves through a VPN server in the node's own country, so a site that only lets in its own country lets it in. Every run starts clean: no cookies are carried over.
Port
Opens a connection to a host and port, such as db.example.com:5432, and closes it. It passes if the port accepts within 10 seconds. Nothing is sent. Port 25 cannot be checked, and nor can a host that sits behind Cloudflare: use a website check for that. A port behind a firewall cannot be let in by address (see Firewalls).
DNS record
Looks up an A, AAAA, CNAME, MX, TXT or NS record. It passes if there is one, or, with Must contain filled in, if one of the answers holds that text. Use it to hear when a record is changed or lost.
Heartbeat
For jobs nothing can call: backups, cron jobs, scripts. The node gives you an address, and your job calls it each time it finishes.
curl -fsS https://knowitbroke.dev/hb/your-token
If the call does not come within the time you set, plus the seconds of lateness you allow, the node goes down at once. The job can say more:
?ms=5300- How long the job took. It is drawn on the node's graphs.
?status=down&msg=disk+full- The job itself failed. The node goes down straight away with that reason.
?msg=420+rows- A note kept with the run.
GET and POST both work. Calls less than half a minute apart count once. Anyone with the address can call it, so treat it as a secret.
Domain expiry
Asks the domain's registry when its registration runs out, and goes down when fewer days are left than you set. Works for most endings. A few registries do not publish the date; press Test it to see. It looks at most four times a day.
Certificate expiry
Reads the certificate a site shows and goes down when too few days are left, or when a browser would refuse it: run out, for another name, or with a broken chain. It is read once a day unless you say otherwise, and hourly at most.
Change watch
For an API you depend on and do not run. It keeps a picture of what the address looks like from outside and says, in plain words, what is different.
- TLS versions and the ciphers it accepts
- The certificate, and its key and signer if you tick that you pin it
- A short list of headers
- The names and kinds of the fields in its JSON, never their values
Give it a sandbox address as well. Suppliers usually change the sandbox first, so you hear while there is still time. Each address gets its own headers, so a live key is never sent to a sandbox.
The node shows Changed until you settle it. Accept as normal makes what it looks like now the picture later runs are set against. Ignore silences one line for good. If the change goes back by itself, the node goes back to up.
It is never called down, because what it watches may be up the whole time, and it never shows on the status page. The free compare page sets two hosts side by side with no account.
Secret expiry
For a key, password or token you renew by hand. It counts down to the day it runs out. Nothing is checked, and the secret itself is never asked for: give it a name you will know it by.
- You choose how many days before the end it turns amber and tells you. It tells you again once it has run out.
- Alerts can wait for working hours, go at any hour, or not be sent at all.
- Renewed starts the count again, for the same length as last time unless you pick another date.
It does not go on the status page unless you tick that it should. There it shows the days left and never makes the page say something is down.
By hand
For a part of your service no machine can check: phone support, a supplier, deliveries. You set it to Working or Having trouble, with a line to show beside it, and the status page shows it with the rest. Nobody is alerted.
When something breaks
When a node counts as down
One failure is never enough unless you say so. After a first failure the node is checked again within a minute. A second failure in a row makes it down, opens an outage and tells people. Under When it fails in the editor you can set this from 1 (the first failure alerts) to 5.
- A new node that has never passed is down at its first failure.
- A heartbeat is down the moment it is late, or the moment the job says it failed.
- A run we could not make is not counted at all: our browser would not start, or a VPN server turned us away. It is tried again in a couple of minutes.
- Not checked (amber) means a node should have run by now and has not. Its last answer is old news, so it stops showing green.
When it passes again the outage is closed and people hear how long it lasted.
Looking into a failed run
Press a failed run on a node's page. The newest 30 failures of each node keep what came back:
- Website or API: the status, where redirects ended, the headers and the start of the body.
- Browser flow: a picture of the page at that moment, its address and title, what it said, its own errors, and the requests that failed.
- DNS: the answers that came back.
All of it is stored encrypted, apart from the picture, and removed after 30 days. A run that passed keeps its time and its line, and nothing more.
Checking from more places
Run from picks where a check leaves: London, Frankfurt, US East, US West, Singapore or Sydney. Website, port and DNS nodes can add up to two more places. The node is then only called down when two places fail at the same time, so one place's bad network wakes nobody. If too few places answered to be sure, nothing is recorded and it is tried again.
Maintenance
While a node is in maintenance it is still checked and recorded, but nobody is told, and the status page says Maintenance instead of Down. If it is still down when the time is up, the alert goes out then.
- Now: press Maintenance on the node, from 30 minutes to 8 hours. Tick to do every node at once.
- Regular: in the editor, under When it fails, pick days of the week or of the month, a start time and a length. Times are on your account's clock, and a window may run past midnight.
Alerts
Alert routes
A route is one way to reach somebody. It is used when a node goes down, when it comes back, and for a reminder if you ask for one. Every alert links to its node. Send a test after adding one. 30 routes is the most.
Keys, tokens and passwords are stored encrypted and never shown again. If a route stops working, the owner gets an email saying so, once, until it works again.
- Slack, Discord or webhook
- Paste a Slack or Discord webhook address and it posts a message. Any other address gets JSON:
text,event(down or up),node,type,detail,at,linkandreminder. - Email by SMTP
- Your own mail server, on port 587 or 465. Port 25 does not work. Up to ten addresses.
- Text message
- Through your TextAnywhere account, to up to ten numbers. Cut to one text.
- PagerDuty
- Opens an incident and closes it on recovery. Use the integration key of an Events API v2 integration. PagerDuty takes any key of the right shape without checking it, so send a test and see that it pages you.
- Opsgenie
- Opens an alert and closes it on recovery. Pick the region your account is in. Opsgenie does its own chasing, so reminders are not sent to it.
- GitHub issue
- Opens an issue, adds to it if it goes down again while open, and closes it on recovery or leaves it open, as you choose. The token needs one repository and Issues set to read and write.
- Microsoft Teams
- Posts a card to a channel, through a Teams Workflows webhook.
- Telegram
- A message from your own bot to a chat, group or channel.
- ntfy
- A push to the ntfy app. Anyone who knows a topic can read it, so pick one nobody would guess. Your own server works too.
- Pushover
- A push to your phone. A node going down arrives as high priority.
- API call
- Calls your API with your own method, headers and body.
{{node}},{{status}},{{detail}},{{message}}and{{time}}are filled in.
While a node stays down sets reminders for the whole account: none, or every 30 minutes up to every day.
Alert groups and hours
A group decides who hears about a node by time of day. Each rule has days, a from and a to, and the routes to tell. The first rule that fits the hour decides. Tick nobody to stay quiet in that window. Any other time uses the list at the bottom.
Pick a group on each node. A node with no group tells every route. Times are in the zone set on the Groups tab. Up to 15 groups.
A reminder follows the same rules at the hour it is sent. With reminders on, a node that goes down in a quiet window is told of by the first reminder that falls outside it.
The weekly report
One email to the owner on Monday, between eight and nine in the morning on your account's clock: uptime, outages and time down for the week, node by node. Switch it on or off in Setup.
Showing other people
The public status page
Every account has one, at its own address. Anyone can open it without signing in. It shows each node marked Show on the status page, with 60 days of history, and outages from the last 30 days. It refreshes every minute and can be up to 30 seconds behind.
- The first tag on a node is its section. With no tags there is one plain list.
- The order is the board's order.
- A node's address, settings and failure reasons are never shown.
- Change its title and the end of its address under Status page in the menu.
Messages and subscribers
Publish a message when you want to say more than a red dot: Investigating, Cause found, Watching the fix, Resolved. Post updates to it as things move. A resolved message stays on the page for a week.
Visitors can ask for messages by email from the foot of the page. They confirm first, and every email has a link that stops them. 50 people is the most. There is also an RSS feed of messages and outages at the page's address with /rss.xml on the end.
Badges
Small pictures for a README or a web page. The page's own badge is under Status page. Each node on the status page has its own, on its page under Badges for a README:
- State
- up, down, maintenance or paused
- Uptime
- the last 30 days
- Response time
- the last run
- Certificate, secret
- days left
API keys and metrics
A key lets a machine read your numbers as Prometheus text, for Prometheus, Grafana and the like. Make one in Setup. It is shown once. A key can read and never change anything. Ten keys is the most.
curl -H "Authorization: Bearer kib_..." https://knowitbroke.dev/api/metrics
The key also works as the password of basic sign-in with any username, which is what Prometheus sends:
scrape_configs:
- job_name: knowitbroke
scheme: https
metrics_path: /api/metrics
basic_auth: { username: any, password: kib_... }
static_configs:
- targets: [knowitbroke.dev]
knowitbroke_node_up- 1 up, 0 down. Paused nodes are left out.
knowitbroke_node_paused- 1 when paused
knowitbroke_node_maintenance- 1 in maintenance
knowitbroke_node_response_ms- the last run
knowitbroke_node_uptime_ratio- 30 days, 0 to 1
knowitbroke_cert_days_left- for certificate nodes
knowitbroke_secret_days_left- for secret expiry nodes
Your account
The vault
Keep a password, key or token once, and name it in any node as {{NAME}}: in an address, a header, a request body, or what a browser step types.
- It is stored encrypted and never shown again, to anyone. It can be replaced or removed.
- Replace it and every node that names it uses the new value at its next run.
- The vault says which nodes use each entry, and will not remove one in use.
- A node that names an entry the vault does not hold cannot be saved.
Up to 100 entries. Names are letters, numbers and underscores.
Firewalls and addresses
Website and API checks leave from Cloudflare's network. Setup lists the ranges to allow, fetched fresh, with a copy button. Other Cloudflare customers share those ranges, so they prove a request came through Cloudflare, not that it came from us. For a real lock, add a secret header to the node and allow on that too.
Port checks leave from other Cloudflare addresses, which Cloudflare does not publish, so a firewall cannot let them in by address. A DNS check asks a public resolver and never touches your servers.
Browser flows, certificates and the TLS part of a change watch leave through a VPN server, and that address changes from run to run. Let those in by country, or by name:
- API checks
- send the User-Agent shown in Setup
- Browser flows
- send Chrome's own User-Agent with
KnowItBroke/1on the end
Addresses inside a private network cannot be reached. Use a heartbeat from inside instead.
Your team
Everyone in your organisation shares the same nodes, alerts and status page, and signs in with their own email. Invites go by email and last seven days. 25 people is the most.
- Owner
- everything, and the only one who sees the plan and the bill
- Admin
- invites and removes people, reads the audit log, and all a member can do
- Member
- adds and changes nodes, alerts, the vault and the status page
- Viewer
- looks, and changes nothing
The audit log
Audit in the menu lists every change made in your organisation through the console: who, when, what, and which settings moved, like Check every: 5 min to 1 min. The owner and admins can read it. Nobody can edit a line or clear it. It is kept 400 days and goes with the account.
- Nodes
- added, edited, paused, put in maintenance, cleared, deleted, and the board rearranged
- Alerts
- routes, groups, reminders, the time zone and the weekly report
- Status page
- its title and address, and its messages
- Vault and keys
- kept, replaced and removed, by name
- People
- invites, people joining, leaving or removed, and roles
- Plan
- the subscription, whether changed here or by Stripe
- Sign-ins
- who signed in and how, passwords changed, two-step and single sign-on switched on or off
A secret is never written down. Header values, request bodies, what a browser step types, vault values, keys and the addresses of alert routes are only ever "changed". An address loses its sign-in part and everything after the question mark.
It opens on Changes, which is everything but the sign-ins. Search it by person, node or setting, and press a node's name to open it. Download gives what you are looking at as a spreadsheet file, 10,000 lines at most. Pressing Run now or Test it changes nothing, so it is not here: runs are on the node's own page.
Signing in
All of this is in Setup, and on every plan.
- Two-step sign-in: a six-digit code from an authenticator app after your password. You get ten backup codes; each works once.
- Single sign-on: your own identity provider, if it speaks OpenID Connect (Microsoft Entra ID, Okta, Google Workspace, Auth0 and others). It is tested before it is switched on, so a mistake cannot lock you out.
- A sign-in lasts 30 days. Changing your password signs out every other device.
Plans and limits
Four plans differ only in how much they hold. See pricing.
| Plan | Nodes | Browser flows among them |
|---|---|---|
| Basic | 10 | none |
| Standard | 25 | 3 |
| Plus | 35 | 6 |
| Scale | 50 | 8 |
Full? Add five more nodes, or one more browser flow, on top of any plan. The owner does it in Setup, under Change plan or add room. Moving down pauses the newest nodes that no longer fit. Nothing is deleted.
The fastest check is every minute, and every 5 minutes for a browser flow.
What is kept, and how long
- Every run
- 30 days
- Daily uptime and times
- 400 days
- What a failed run saw
- the newest 30 a node, 30 days at most
- Your audit log
- 400 days
Deleting your account in Setup removes all of it at once. More on the privacy and security pages.
Help
When something looks wrong
My site works for me but the node is down
Open the failed run and read what came back. A 403 or a page that asks to prove you are human is bot protection: let our checks in by the User-Agent or a secret header (see Firewalls). If only your country can reach the site, set Run from to that country.
A browser flow fails at a step that looks right
Look at the picture it kept. A cookie banner over the button is the usual reason: add a Click step for it. If the words are there but the step misses them, use See element with a selector. If the page redraws itself after loading, put a See step before the Click.
A browser flow says it could not be made
The fault was on our side or the VPN's, so it is not counted against you and is tried again in a couple of minutes.
No alert arrived
Under Alerts, each route says how its last alert went. Send a test. Check the node's group is not quiet at that hour, that the node is not in maintenance, and that it really went down: one failure on its own tells nobody.
Too many alerts
Raise the failures in a row under When it fails, or check from two places, so only a fault both can see counts.
A heartbeat went down though the job ran
The call has to succeed. curl -fsS shows an error if it did not. If the job takes a varying time, allow it to be later.
The board says checks are not running
That is us. The timer that starts checks has stopped, so what you see is the last known state. We are told within a few minutes.
Still stuck? Write to hello@knowitbroke.dev with the node's name and the time of the run.
Nothing here matches that. Try a shorter word, or write to hello@knowitbroke.dev.