KoskenDocs Open the app

Monitor kinds and their fields

Each type of monitor, what its check does, and each field with its allowed values and its default.

4 min readUpdated on Español

On this page
  1. Fields of every monitor
  2. Service (systemd unit)
  3. Port
  4. URL
  5. Container
  6. Disk
  7. CPU and Memory
  8. Load average
  9. Failed systemd units
  10. Log pattern
  11. Certificate
  12. Read-only recipe

This reference lists each type of monitor, what its check does, and each field with its allowed values and its default. To add a monitor, see Monitors.

Fields of every monitor

FieldValuesDefault
MachinesOne or more machines, or All machines.None. From a machine page, that machine.
Name1 to 100 characters.None. Required.
TypeOne of the types below.Service (systemd unit)
SeverityInfo, Warning, CriticalWarning
IncidentBy severity, Always open an incident, Never: record the signal onlyBy severity
Failed checks before it fires1 to 100, in a row.3
EnabledOn or off.On

The agent runs each check with each heartbeat, every 15 seconds by default. A check has 5 seconds. A check that cannot run counts as neither a failure nor a pass. Numbers are whole numbers, except Load limit per CPU.

Service (systemd unit)

Fails when systemctl is-active does not print active for the unit.

FieldValuesDefault
UnitA unit name that ends in .service, .socket, .timer, .mount or .target, for example nginx.service.None. Required.

Port

Fails when a TCP connection to the host and port does not open in 3 seconds.

FieldValuesDefault
HostA host name or an address.127.0.0.1
Port1 to 65535.None. Required.

URL

Sends a GET request from the machine. Fails when the status of the answer is not the expected status. The check does not follow a redirect, so a redirect counts with its own status.

FieldValuesDefault
URLAn http or https address, up to 2,000 characters.None. Required.
Expected status100 to 599.200
Timeout (ms)100 to 30000. The agent waits at most 4 seconds.5000

Container

Watches one Docker container. The executor reads its state with a fixed read-only call.

FieldValuesDefault
What to watch
  • Container is down or unhealthy: fails when the container does not run or its health check reports unhealthy.
  • Container is not running: fails when it does not run.
  • Health check reports unhealthy: fails when its health check reports unhealthy.
  • Container restarts: fails when it restarts more often than Restarts allowed in the window.
Container is down or unhealthy
Container nameThe name that docker ps shows. Letters, digits, _, . and -, up to 128 characters. The field suggests the containers of the machines that you check.None. Required.
Restarts allowed0 to 1000. Only for Container restarts.0
Window (seconds)15 to 3600. Only for Container restarts.600

With Container restarts, the check passes only when the agent has data for the whole window. After the agent starts, the check waits until it has that data.

Disk

Fails when the used space or the used inodes of the mount point pass their limit.

FieldValuesDefault
Mount pointAn absolute path, up to 200 characters./
Used space limit (%)1 to 100.90
Inode limit (%)1 to 100.90

CPU and Memory

Fails when the average use over the window is above the limit. Right after the agent starts, it has no sample yet, and the check does not count.

FieldValuesDefault
Limit (%)1 to 100.90
Window (seconds)15 to 3600.300

Load average

Fails when the average load over the window is above the limit multiplied by the number of CPUs of the machine. On 8 CPUs, 1.5 fails above a load of 12.

FieldValuesDefault
Load limit per CPU0.1 to 20. 1.0 means that every CPU is busy.1.5
Window (seconds)15 to 3600.300

Failed systemd units

Counts the units that systemctl --failed lists. Fails when the count is above the limit. The signal names the failed units.

FieldValuesDefault
Largest count allowed0 to 1000. 0 fails on the first failed unit.0

Log pattern

Counts the lines of the journal of a unit in the window that match the pattern. Fails when the count is above the limit. The signal carries up to 20 matching lines, with secrets removed on the machine.

FieldValuesDefault
UnitA unit name, as for Service (systemd unit).None. Required.
PatternA regular expression of 1 to 500 characters, for example (?i)error|panic.None. Required.
Largest count allowed0 to 100000.0
Window (seconds)15 to 3600.300

Certificate

Reads a certificate from a file or from a TLS endpoint, and fails when fewer days remain than the limit. A file that cannot be read, or an endpoint that does not answer, also fails. For an endpoint, the check reads only the date. It does not check the chain.

FieldValuesDefault
Certificate fileAn absolute path to a PEM file, up to 300 characters. Give this or an endpoint, not both.Empty
Endpointhost:port, for example web-01.example.com:443.Empty
Days before it expires1 to 365.14

Read-only recipe

The executor runs a read-only recipe of the catalog. The check passes when the recipe succeeds with exit code 0. Between two runs, the check repeats the last result.

FieldValuesDefault
RecipeThe ID of a read-only recipe, for example check.disk_usage. A recipe that changes the machine is refused.None. Required.
Interval (seconds)60 to 86400.300

See the recipe catalog for the recipes.

Something here does not match the app? Tell us