Monitor kinds and their fields
Each type of monitor, what its check does, and each field with its allowed values and its default.
On this page
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
| Field | Values | Default |
|---|---|---|
| Machines | One or more machines, or All machines. | None. From a machine page, that machine. |
| Name | 1 to 100 characters. | None. Required. |
| Type | One of the types below. | Service (systemd unit) |
| Severity | Info, Warning, Critical | Warning |
| Incident | By severity, Always open an incident, Never: record the signal only | By severity |
| Failed checks before it fires | 1 to 100, in a row. | 3 |
| Enabled | On 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.
| Field | Values | Default |
|---|---|---|
| Unit | A 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.
| Field | Values | Default |
|---|---|---|
| Host | A host name or an address. | 127.0.0.1 |
| Port | 1 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.
| Field | Values | Default |
|---|---|---|
| URL | An http or https address, up to 2,000 characters. | None. Required. |
| Expected status | 100 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.
| Field | Values | Default |
|---|---|---|
| What to watch |
| Container is down or unhealthy |
| Container name | The 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 allowed | 0 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.
| Field | Values | Default |
|---|---|---|
| Mount point | An 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.
| Field | Values | Default |
|---|---|---|
| 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.
| Field | Values | Default |
|---|---|---|
| Load limit per CPU | 0.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.
| Field | Values | Default |
|---|---|---|
| Largest count allowed | 0 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.
| Field | Values | Default |
|---|---|---|
| Unit | A unit name, as for Service (systemd unit). | None. Required. |
| Pattern | A regular expression of 1 to 500 characters, for example (?i)error|panic. | None. Required. |
| Largest count allowed | 0 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.
| Field | Values | Default |
|---|---|---|
| Certificate file | An absolute path to a PEM file, up to 300 characters. Give this or an endpoint, not both. | Empty |
| Endpoint | host:port, for example web-01.example.com:443. | Empty |
| Days before it expires | 1 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.
| Field | Values | Default |
|---|---|---|
| Recipe | The 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