KoskenDocs Open the app

Monitors

Add a monitor to one or many machines, choose how many failed checks open an incident, and edit, pause or delete it.

3 min readUpdated on Español

On this page
  1. Add a monitor
  2. Monitor types
  3. When a monitor opens an incident
  4. One monitor for many machines
  5. Edit a monitor
  6. Pause a monitor
  7. Delete a monitor

This guide shows how to add a monitor to one or many machines, choose when it opens an incident, and edit, pause or delete it.

Add a monitor

You need write access.

The New monitor form: machines, name, type, severity, what opens an incident, and the failed checks before it fires.The New monitor form: machines, name, type, severity, what opens an incident, and the failed checks before it fires.
  1. Open the machine and select the tab Monitors.
  2. Select Add monitor. The form opens with this machine already selected. You can also start from Signals, tab Monitors, Add monitor.
  3. In Machines, check the machines that the monitor watches.
  4. Type a Name, for example Disk usage of /data. Signals and incidents show this name.
  5. Choose the Type. The fields below Settings change with the type.
  6. Choose the Severity: Info, Warning or Critical. The default is Warning.
  7. Choose the Incident option (see When a monitor opens an incident).
  8. Set Failed checks before it fires. The default is 3.
  9. Fill the fields under Settings.
  10. Keep Enabled checked and select Save.

Kosken sends the monitor to the agent of each selected machine in a signed configuration. The agent runs the check on the machine.

Monitor types

TypeThe check fails when
Service (systemd unit)The unit is not active.
PortA TCP connection to the host and port does not open.
URLA GET request does not return the expected HTTP status.
ContainerA Docker container is down, unhealthy, or restarts too often.
DiskThe used space or the used inodes of a mount point pass a limit.
CPU, MemoryThe average use over a time window passes a limit.
Load averageThe load average for each CPU passes a limit.
Failed systemd unitsMore units fail than the count that you allow.
Log patternToo many lines of a unit log match a pattern in a time window.
CertificateA certificate file or endpoint expires in fewer days than the limit.
Read-only recipeA read-only recipe does not succeed with exit code 0.

Each field, its values and its default are in Monitor kinds.

When a monitor opens an incident

  • The agent runs every monitor with each heartbeat. A heartbeat comes every 15 seconds by default.
  • The monitor fires when the number of checks in Failed checks before it fires fail in a row. The value is from 1 to 100. With 3, a failure must last about 45 seconds.
  • A check that cannot run, for example a command that takes more than 5 seconds, counts as neither a failure nor a pass.
  • A firing monitor clears after 2 passed checks in a row, by default.
  • The checks of a paused machine count for nothing. See the Settings tab.

When the monitor fires, Kosken records a signal. The Incident option says what happens next:

By severity
The default. An incident opens when the severity of the monitor is the lowest severity that opens an incident, or higher. The option shows that severity, for example warning and above.
Always open an incident
Every firing opens an incident, at any severity.
Never: record the signal only
The signal shows in Signals, and no incident opens.

See Signals and Incidents.

One monitor for many machines

  • Check more than one machine in Machines. The monitor runs on each one, and each machine fires on its own.
  • Check All machines to run it on every machine, also on machines that you connect later.
  • On Signals, tab Monitors, the column Machines shows where each monitor runs.
  • To make a similar monitor, select Duplicate, change what differs, and select Save.

Each workspace starts with five monitors on all machines: Disk usage of /, Memory use, CPU use, Failed systemd units and Load average. You can edit or delete them. A deleted one does not come back.

Monitors do not run on a machine that Kosken reaches only through a reach host. See Machines with no agent.

Edit a monitor

  1. Select Edit on the tab Monitors of a machine, or on Signals, tab Monitors.
  2. Change the fields.
  3. Select Save. Kosken sends the new configuration to the machines that the monitor watched before and after the change.

Pause a monitor

On Signals, tab Monitors, select Disable. The state changes to Disabled. A disabled monitor stays in the list and does not run. Select Enable to start it again. You can also clear Enabled in the form.

Delete a monitor

  1. Open Signals, tab Monitors.
  2. Select Delete on the row of the monitor.
  3. Confirm Delete this item?.

A signal that the monitor holds open is resolved.

Something here does not match the app? Tell us