Monitors
Monitor endpoints return information about monitors and provide some monitor controls through POST methods.
An endpoint might reference all monitors or a single monitor as documented.
Single-monitor endpoints require query key id to identify the monitor, which is a config.monitor.id value.
Use GET /monitors to discover monitor IDs if you don’t set them explicitly in the Blip config file.
Returns a list of all loaded monitors keyed on config.monitor.id.
The value for each is its redacted DSN (no password).
{
"localhost": "blip:...@unix(/tmp/mysql.sock)/?parseTime=true"
}
Reloads all monitors. See Monitors / Loading / Reloading.
Reloading only affects new and removed monitors. Monitors that did not change are not affected, even on error.
A 200 status code means the monitors were reloaded.
Removed or changed monitors that haven’t stopped within config.monitor-loader.stop-timeout keep stopping in the background, and a new monitor with the same ID starts when the old one has stopped.
None on success (200 status code).
Error message on 4xx or 5xx status code.
409: Error reloading monitors
412: Stop-loss prevented reloading
Starts one monitor.
id query key is required.
If the monitor is still stopping, the request returns 202, and the monitor starts when it has stopped.
If the StartMonitor plugin then declines to start it, or the start fails, the monitor status says so, and a failed start sends event monitor-error (or monitor-panic).
Stopping the monitor before then cancels the pending start.
| Key | Value | Required | Purpose |
|---|---|---|---|
id | config.monitor.id | Yes | Monitor to start |
None on success (200 status code).
Error message on 4xx or 5xx status code.
202: A monitor with the same ID is still stopping; the monitor starts when it has stopped. Starting it again while it waits also returns 202.
404: Monitor not loaded
409: Error starting monitor, monitor already running, or the StartMonitor plugin declined to start it
Stops one monitor.
id query key is required.
The monitor is stopped but not unloaded, which means it reported by status endpoints.
The monitor stays stopped across POST /monitors/reload until POST /monitors/start, unless its config changes, it’s removed and loaded again, or Blip restarts.
The request waits for the monitor to stop, but no longer than config.monitor-loader.stop-timeout.
| Key | Value | Required | Purpose |
|---|---|---|---|
id | config.monitor.id | Yes | Monitor to stop |
None on success (200 status code).
Error message on 4xx or 5xx status code.
202: Monitor is still stopping after the stop timeout; it keeps stopping in the background