Skip to content

Features

Alerts

Included free on every install, with alerts by email. Slack, Discord, PagerDuty and signed webhook channels, a tenant's own error spike threshold and error events older than 30 days need a license with the alerts-pro feature. See pricing.

Four features watch your instance and can tell people when something breaks: a scheduled job that keeps failing, an error rate that spikes, a log volume that passes a limit, and an uptime probe that goes down. Each one sends its alert to the channels you set on it. Email works on every install. With alerts-pro, the same alert also reaches Slack, Discord, PagerDuty or a webhook of yours that can check the alert came from your instance.

What is watchedWhen it alertsWhere you set the channelsWho sets them
A scheduled jobAfter a number of failed runs in a row that you choose, from 1 to 100. The first run that works sends a recovery notice.The job's alerts objectThe job's tenant admin
Error spikesWhen the tenant's error count over the last five minutes stands well above the six windows before it. At most one alert every 15 minutes per tenant.PUT /api/admin/error-tracking/alert-settingsThe tenant's admin
Log volumeWhen the entries a rule watches pass its max_count within its window. At most once per cooldown.Each rule's channelsA super admin
An uptime probeWhen the probe raises an alert after repeated failures. The next passing run sends a recovery notice.PUT /api/admin/synthetic-monitoring/probes/{id}/alert-channelsThe probe's tenant admin

Every alert also stays where its feature keeps it: the job's history, the error alert list, the live log tail and the probe's alert list. Those need no channel and no license.

ChannelFieldFree or alerts-proWhat it receives
EmailemailFreeA message to up to 10 addresses, through the instance's email.
Slackslack_urlalerts-pro{"text": "..."} on a Slack incoming webhook.
Discorddiscord_urlalerts-pro{"content": "..."} on a Discord webhook.
PagerDutypagerduty_routing_keyalerts-proAn event on the PagerDuty Events API v2.
Your webhookwebhook_urlalerts-proA signed JSON body, below.

Every surface takes the same channel fields, so a setting you write for one works on the others.

Each watched feature has its own channel form in LyEve Console, with the same five fields: Email, Slack webhook URL, Discord webhook URL, HTTPS webhook URL and PagerDuty routing key.

What is watchedWhere to open it
A scheduled jobOperations > Scheduled jobs, under Failure alerts in the job's form, with Alert after this many failures in a row.
Error spikesInsight > Observability > Errors, then Spike alerts. With alerts-pro, What counts as a spike sets a Default or Custom threshold.
Log volumeInsight > Logs, then Volume alerts. Each rule from New rule has its own Channels.
An uptime probeInsight > Observability > Synthetic monitoring, then Notice channels on the probe's row.

The Spike alerts page on an install without alerts-pro: two addresses in Email, then Not enabled on this instance above the empty Slack, Discord, HTTPS webhook and PagerDuty fields.

For the console steps, you are signed in to the console as a super admin. For the API steps, you need an admin token in TOKEN. The quickstart shows how to get one. Email needs a working email transport. Without one, the email channel is skipped and everything else still works.

1. Create a job that fails on every run and emails you after the second failure.

Console v0.28.0

Console v0.25.0 cannot run a job on demand, so this job runs every minute.

  1. Open Operations > Scheduled jobs and choose New job.
  2. Enter always-fails in Name, * * * * * in Cron schedule and https://httpbin.org/status/500 in Endpoint URL.
  3. Under Failure alerts, enter you@example.com in Email and 2 in Alert after this many failures in a row.
  4. Choose Create.

Engine API v0.62.0

Shell
curl -X POST http://localhost:3001/api/admin/cron/jobs \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "always-fails",
"schedule": "0 3 * * *",
"endpoint": "https://httpbin.org/status/500",
"alerts": {"email": ["you@example.com"], "failure_threshold": 2}
}'

The answer is 201. Copy its id into JOB_ID.

2. Let it fail twice.

Console v0.28.0

Wait two minutes. The job runs at the start of each minute, and Last run shows a cross after each failed run.

Engine API v0.62.0

Run the job now, twice, a few seconds apart:

Shell
curl -X POST http://localhost:3001/api/admin/cron/jobs/$JOB_ID/trigger \
-H "Authorization: Bearer $TOKEN"

Each answer is 202. After the second run, consecutive_failures on GET /api/admin/cron/jobs/$JOB_ID is 2.

After the second failure the email arrives with the subject Cron job "always-fails" failed 2 runs in a row. The endpoint answered 500.

3. Ask whether this install may add a paid channel.

Console v0.28.0

Open Insight > Observability > Errors and choose Spike alerts. On an install without alerts-pro, the page says Not enabled on this engine above the Slack, Discord, HTTPS webhook and PagerDuty fields, and those fields take no input. On the job, choose Edit and enter a Slack URL in Slack webhook URL. Saving says This needs alerts-pro, and nothing is changed.

Engine API v0.62.0

Shell
curl http://localhost:3001/api/admin/error-tracking/alert-settings \
-H "Authorization: Bearer $TOKEN"
JSON
{"channels": {}, "spike_min_count": null, "spike_z_score": null, "defaults": {"spike_min_count": 10, "spike_z_score": 2.5}, "licensed": false, "free_event_window_days": 30}

licensed is false on an install without alerts-pro. Adding a Slack URL to the job now answers 402 naming feature:alerts-pro, and the job keeps its email alert.

4. Delete the job when you are done.

Console v0.28.0

Choose Delete on the job's row and confirm. Its schedule stops and its run history goes with it.

Engine API v0.62.0

Shell
curl -X DELETE http://localhost:3001/api/admin/cron/jobs/$JOB_ID \
-H "Authorization: Bearer $TOKEN"

The answer is 204.

Send alerts in the body of any route that creates or updates a job: POST and PUT on /api/admin/cron/jobs and on /api/admin/jobs.

JSON
{
"alerts": {
"email": ["ops@example.com"],
"slack_url": "https://hooks.slack.com/services/T000/B000/XXXX",
"pagerduty_routing_key": "R0123456789abcdef0123456789abcde",
"failure_threshold": 3
}
}
FieldMeaningDefault
email, slack_url, discord_url, webhook_url, pagerduty_routing_keyThe channels, described above. Any one is enough.none
failure_thresholdFailed runs in a row before the alert, from 1 to 100.1
  • A run fails when the endpoint answers 400 or above, or cannot be reached.
  • Each channel hears once per streak of failures, not once per failed run, and the first run that works sends the recovery notice to the same channels.
  • An update that leaves alerts out keeps the job's current setting. "alerts": null, or an object naming no channel, removes them.

The line a chat channel receives reads Cron job "nightly-export" failed 3 runs in a row. The endpoint answered 500., or Cron job "nightly-export" recovered after 3 failed runs in a row.

With alerts-pro, the same alert can go to a signed webhook of yours:

Console v0.28.0

  1. Open Operations > Scheduled jobs and choose New job, or Edit on a job's row.
  2. Under Failure alerts, enter your endpoint's https:// address in HTTPS webhook URL, and the count in Alert after this many failures in a row.
  3. Choose Create, or Save on an existing job.

A dialog, Alert signing secret, shows the secret the job signs its alerts with. Copy it to your endpoint then, because it is not shown again. The next failure that reaches the count posts a signed cron.job.failed call to the address.

Engine API v0.62.0

Shell
curl -X POST http://localhost:3001/api/admin/cron/jobs \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "always-fails",
"schedule": "0 3 * * *",
"endpoint": "https://httpbin.org/status/500",
"alerts": {"webhook_url": "https://hooks.example.com/lyeve-alerts", "failure_threshold": 2}
}'

The answer is 201 and carries alert_signing_secret once. Its alerts shows the URL masked and "webhook_signed": true. Copy its id into JOB_ID. The schedule runs once a day, so trigger the job twice instead of waiting two days. Each call answers 202:

Shell
curl -X POST http://localhost:3001/api/admin/cron/jobs/$JOB_ID/trigger \
-H "Authorization: Bearer $TOKEN"

After the second failed run the endpoint gets:

JSON
{"event": "cron.job.failed", "job_id": "5a6a7018-e851-4d76-97a5-c6f14e4ad526", "job_name": "always-fails", "tenant_id": "default", "status_code": 500, "error": "endpoint returned 500", "consecutive_failures": 2, "time": "2026-10-23T17:31:12.354501984Z"}

The first run that works sends cron.job.recovered to the same address.

Verify a webhook alert shows how to check the signature.

Each tenant sets where its spike alerts go.

Console v0.28.0

Open Insight > Observability > Errors and choose Spike alerts. Enter ops@example.com in Email, one address per line or comma, and choose Save. The page says Spike alerts saved.

Engine API v0.62.0

Shell
curl -X PUT http://localhost:3001/api/admin/error-tracking/alert-settings \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"channels": {"email": ["ops@example.com"]}}'

The answer is the setting, as GET on the same path returns it: channels, the tenant's own thresholds (null for the default), the defaults, licensed and free_event_window_days.

FieldMeaningFree or alerts-pro
channelsThe channels, described above.Email free
spike_min_countThe fewest errors in a window that can count as a spike, from 1 to 1,000,000. Default 10.alerts-pro
spike_z_scoreHow many standard deviations above the earlier windows a count must stand, from 0.5 to 20. Default 2.5.alerts-pro
  • A field left out keeps what is stored, and null clears it. A cleared threshold goes back to the default.
  • The check runs every minute and compares each tenant's errors on their own.
  • The alert names the tenant, the count, the window and how far above the baseline it stands.

With alerts-pro, set a threshold of the tenant's own:

Console v0.28.0

  1. Open Insight > Observability > Errors and choose Spike alerts.
  2. Under What counts as a spike, pick Custom in Threshold.
  3. Enter 5 in Minimum errors in a window and 3 in Z-score, then choose Save. The page says Spike alerts saved.

A new HTTPS webhook URL saved on the same form opens a Webhook signing secret dialog first, with the secret shown once, and the field then reads Signed.

The What counts as a spike part of the Spike alerts page on an install licensed for alerts-pro, with the Custom threshold picked, 5 minimum errors in a window and a z-score of 3.

Engine API v0.62.0

Shell
curl -X PUT http://localhost:3001/api/admin/error-tracking/alert-settings \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"spike_min_count": 20, "spike_z_score": 3.5}'

The answer is 200 with "spike_min_count": 20 and "spike_z_score": 3.5 beside the defaults. A z-score of 30 answers 422 with spike_z_score must be null or a number from 0.5 to 20. A new webhook_url in channels answers webhook_signing_secret once, and sending the masked URL back answers none.

An operator can also send every tenant's spikes to one place with SLACK_WEBHOOK_URL and DISCORD_WEBHOOK_URL, described on error tracking. Those belong to the instance's configuration and send on every install.

A super admin writes the volume rules, and each rule carries its own channels.

Console v0.28.0

  1. Open Insight > Logs and choose Volume alerts, then New rule.
  2. Keep ERROR in Level, enter 100 in Ceiling and 5m in Window. Leave Tenant empty to count every tenant's entries.
  3. Under Channels, enter ops@example.com in Email and choose Create.

The rule joins the list as ERROR entries 100 in 5m. Cooldown, below the list, sets the quiet time after a rule fires, such as 10m, with its own Save.

Engine API v0.62.0

Shell
curl -X PUT http://localhost:3001/api/admin/logging/alerts \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"thresholds": [{
"id": "errors",
"level": "ERROR",
"max_count": 100,
"window": "5m",
"enabled": true,
"channels": {"email": ["ops@example.com"]}
}],
"cooldown": "10m"
}'
  • The rules are checked every minute in the background, whether or not anyone reads the volume.
  • A rule keeps its id across writes, and a rule sent without one gets one.
  • A rule with a tenant_id counts only that tenant's entries. One without counts every tenant's.
  • Every firing also reaches the live log tail as an ALERT entry.

POST /api/admin/logging/alerts adds a single rule, and GET, PUT and DELETE /api/admin/logging/alerts/{id} handle one rule at a time. GET /api/admin/logging/alerts answers licensed beside the rules. A super admin reads every rule. A tenant admin reads only the rules scoped to their own tenant, with each email address shortened. Logs covers the rule fields.

Each probe has its own channels.

Console v0.28.0

Open Insight > Observability > Synthetic monitoring and choose Notice channels on the probe's row. Enter ops@example.com in Email and choose Save.

Engine API v0.62.0

Look up the probe's id by its name, here Public site:

Shell
PROBE_ID=$(curl -s http://localhost:3001/api/admin/synthetic-monitoring/probes \
-H "Authorization: Bearer $TOKEN" \
| jq -r '.[] | select(.name == "Public site") | .id')

Then set its channels:

Shell
curl -X PUT http://localhost:3001/api/admin/synthetic-monitoring/probes/$PROBE_ID/alert-channels \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"email": ["ops@example.com"]}'

The body is the channels object itself, or null to clear it. The answer, like GET on the same path, carries channels and licensed.

When the probe raises an alert, the channels receive Probe "Public site" is down: 3 failed checks in a row., and the first passing run after that resolves the alert and sends Probe "Public site" recovered.

  • Every URL must be an absolute https:// URL of at most 2,048 characters. One that points at a private, loopback or link-local address, or at a name that resolves to one, answers 422 when you save it, and every delivery checks again.
  • A PagerDuty routing key is the 32-character integration key of an Events API v2 integration.
  • The URLs and the routing key are credentials, so they are encrypted at rest and masked in every answer, keeping the host and the last four characters. Storing one needs ENCRYPTION_KEY. Email addresses are stored readable, so a privacy erasure request finds them.
  • Sending a masked value back keeps the stored one, so a form that resends what it read changes nothing.
  • A Slack, Discord, PagerDuty or webhook delivery that fails is retried once. A channel that still cannot be reached misses that alert, and the other channels still receive theirs.

The write that sets a new webhook_url answers its signing secret once: alert_signing_secret on a job, webhook_signing_secret on the other three. An unchanged URL keeps its secret, and a new URL gets a new one. Each call to the webhook carries:

HeaderValue
X-Lyeve-TimestampUnix seconds
X-Lyeve-Signaturesha256= and the hex HMAC-SHA256 of the timestamp, a . and the raw body, keyed with the signing secret

Recompute the signature over the raw body before you parse it, compare in constant time, and refuse a timestamp more than a few minutes old.

eventOther fields
cron.job.failed, cron.job.recoveredjob_id, job_name, tenant_id, status_code, error, consecutive_failures, time
error_tracking.spiketenant_id, count, baseline_mean, baseline_stddev, z_score, window_start, window_end, top_fingerprint, top_fingerprint_count, sample, detected_at
logging.volume.exceededrule_id, level, tenant_id, plugin, window, count, max_count, exceeded_by, time
synthetic.probe.down, synthetic.probe.recoveredprobe_id, probe_name, probe_type, tenant_id, consecutive_failures, error, time

A field with no value is left out.

A failing job and a probe that goes down each open one incident, and their recovery resolves it. An error spike opens one incident per tenant and a log volume rule one per rule, so repeated alerts fold into the open incident. Resolve those in PagerDuty.

Before these alerts covered errors, logs and probes, they were sold for scheduled jobs alone as Cron Failure Alerts, and a license bought then carries the name cron-pro. The engine accepts cron-pro as alerts-pro through the next minor release, so that license opens every channel on this page. A license issued now carries alerts-pro in its place.

Channels set while the license was active keep sending, so you keep hearing about problems. Changing the email list, removing a channel, clearing a threshold and sending back the stored setting stay free. Adding or changing a Slack, Discord, PagerDuty or webhook channel, or setting a spike threshold, needs alerts-pro again. Error event reads go back to the last 30 days, and the lapse deletes nothing. A super admin can also withhold alerts-pro from one tenant, as Tenants describes, and that tenant then meets the same 402.

StatusMessageCause
402payment_required, naming feature:alerts-proThe request adds or changes a paid channel or a spike threshold without alerts-pro. Nothing is stored.
422invalid alerts: failure_threshold must be between 1 and 100A job's threshold is out of range.
422invalid alert channels: at most 10 email recipientsToo many addresses.
422invalid alert channels: "<value>" is not an email addressAn address does not parse.
422invalid alert channels: slack_url must be an absolute https:// URLA URL is not https://. The message names the field.
422invalid alert channels: webhook_url must point to a public address this instance sends toThe URL points at a private address.
422invalid alert channels: pagerduty_routing_key must be the 32 character key of an Events API v2 integrationThe routing key has the wrong shape.
422... is a masked value that is not stored here, so send the whole valueA masked value that does not match the stored one.
422spike_min_count must be null or a whole number from 1 to 1000000, spike_z_score must be null or a number from 0.5 to 20A spike threshold is out of range.
503alert channels other than email cannot be stored right nowThe instance has no ENCRYPTION_KEY. Email still saves.

A body that breaks a rule answers 422 before the license is read, so fix the fields first. The 402 body in full:

JSON
{"error": "payment_required", "plugin": "cron", "feature": "feature:alerts-pro", "upgrade_url": ""}

plugin names the feature that answered: cron, error-tracking, logging or synthetic-monitoring.