Alert Configuration
What this covers
Tessallite alerts you by email or in the application (in-app alerts) when platform lifecycle events occur: aggregate refresh failures, schema drift, SLA breaches, query failure spikes, aggregate retirements, and upstream refresh failures. This page explains how alert routing works, how to configure routes, and best practices for operational alerting.
How alerting works
The alert system consists of three layers:
- Event emitters — the scheduler, query-router, and optimizer emit events when something operationally significant happens.
- Notification routes — per-tenant configuration records that map event types to delivery channels. Each route specifies an event type, a channel (email or in-app), the email recipients when the channel is email, and an enabled flag.
- Delivery — email goes through the SMTP sender, configured at the system level via environment variables. An in-app alert is recorded by Tessallite and listed under Recent alerts and deliveries in the Alerts panel; nothing leaves Tessallite.
When a lifecycle event fires, the dispatcher looks up all enabled notification routes for that event type, deduplicates within a 5-minute window, and dispatches to each matching channel.
Supported events
| Event | Trigger | Typical action |
|---|---|---|
| Refresh Failure | A scheduled aggregate refresh fails (full or incremental). | Investigate the source database or refresh query. Check the Diagnostics panel for the error detail. |
| Schema Drift | The daily schema drift sweep detects column additions, removals, or type changes in a source table. | Review the Schema Changes panel. Column removals are always flagged as breaking. Type changes on dimensions or measures are breaking. |
| SLA Breach | The hourly SLA monitor finds an aggregate whose freshness exceeds the configured SLA threshold. | Check the SLA Configuration panel for the breached aggregate. Verify the source database is accessible and the refresh schedule is running. |
| Query Failure Spike | More than 10 queries fail within a 5-minute window in the query-router. | Check the Query Log for the error pattern. Common causes: source database down, credential rotation, or connection pool exhaustion. |
| Aggregate Retired | The daily retirement sweep removes aggregates that exceed the per-model cap. | Review the retired aggregates in the Diagnostics panel. If important aggregates were retired, increase the model's aggregate limit. |
| Upstream Refresh Failed | A scheduled refresh did not run because an upstream refresh it depends on failed first. | Fix the upstream refresh, then re-run the dependent job. Check the Scheduler Dependencies for the chain order — a failure early in the chain blocks everything that depends on it. |
| Core Restarted | A Core process exited unexpectedly and the unit restarted. Tenant routes only. | Check the process, exit code, UTC exit time, restart duration, and owner cleanup counts in the alert and system admin log. |
| KPI Status Change | A KPI's computed status transitions (e.g., Good→Warning or Warning→Poor). | Check the KPI Scorecard for the current status and trend. Status changes often indicate a developing issue that may need attention before it becomes critical. |
| KPI Trend Alert | A KPI's trend direction changes (e.g., Improving→Declining or Flat→Declining). | Review the KPI trend in the Scorecard. A declining trend is an early warning that the KPI may move from its current status to a worse one. |
Configuring alert routes
Open any model in the Model Builder. Click the Alerts icon in the toolbelt (bell icon, near the bottom). This opens the Alerts panel.
Tenant admins can open Tenant Administration → Tenant alerts to manage tenant-wide routes, including Core Restarted. These routes use the same email and in-app channels and apply across the tenant; tenant in-app alerts are listed under Recent alerts and deliveries on the Tenant alerts page. Project modellers cannot view or change tenant routes. Configure a tenant route before relying on Core restart alerts; without an enabled route, the restart is logged but no message is sent.
Adding a route
- Click Add Route.
- Select the Event Type — the lifecycle event that triggers the alert.
- Select the Channel — Email or In-app.
- For Email: enter one or more recipient email addresses, separated by commas. In-app needs no settings.
- For KPI events: optionally enter a KPI Name to restrict the alert to a specific KPI (leave blank to match all KPIs). For KPI Threshold Breach, set the Threshold ratio — a value like 0.8 triggers an alert when the KPI value drops below 80% of its goal.
- Toggle Enabled on (enabled by default).
- Click Create.
Editing and deleting routes
Hover over any row in the alert routes table to reveal action buttons. Click the edit icon to modify the route, or the delete icon to remove it. Use the toggle switch to enable or disable a route without deleting it.
Testing a route
Click the send icon on any row to dispatch a test alert through the configured channel. The test result appears inline. For an in-app route, a test alert appears under Recent alerts and deliveries. If an email test fails, check the SMTP settings and the recipient addresses.
Deduplication
The dispatcher suppresses repeated delivery of the same incident to a route within a 5-minute window. The Core restart hook also claims each tenant against the durable restart record, so running it twice cannot emit a second alert for the same restart.
The window resets after 5 minutes, so the next occurrence after the window will trigger a fresh alert.
SMTP email setup
Email alerts require SMTP configuration at the system level. These settings are environment variables (not per-tenant):
| Variable | Description | Default |
|---|---|---|
SMTP_HOST | SMTP server hostname. If empty, email sending is disabled. | (empty) |
SMTP_PORT | SMTP server port. | 587 |
SMTP_TLS | Enable STARTTLS. | true |
SMTP_USER | SMTP authentication username. Leave empty for unauthenticated relays. | (empty) |
SMTP_PASSWORD | SMTP authentication password. | (empty) |
SMTP_FROM | Sender address for alert emails. | noreply@tessallite.local |
If SMTP_HOST is not set, the email sender logs a warning and skips delivery. Alert routes with email channels will silently fail until SMTP is configured.
Recent alerts and deliveries
The Alerts panel lists the latest alerts: every in-app alert (with its subject and message) and every email attempt, including failed ones with the reason (for example, SMTP not configured). Project panels show the project's alerts plus tenant-wide ones; the Tenant alerts page shows tenant-wide alerts such as Core Restarted. Records are kept for the notification delivery retention period (30 days by default).
Slack is not a Tessallite alert channel. Routes that used Slack before 2026-09-28 were converted to in-app routes.
API reference
Project endpoints require modeler-level access. Tenant endpoints require a human tenant admin or system admin.
| Endpoint | Description |
|---|---|
GET /api/v1/projects/{id}/notifications | List all notification routes for the project. |
POST /api/v1/projects/{id}/notifications | Create a new notification route. |
PUT /api/v1/projects/{id}/notifications/{route_id} | Update an existing route. |
DELETE /api/v1/projects/{id}/notifications/{route_id} | Delete a route. |
POST /api/v1/projects/{id}/notifications/test | Send a test alert through the specified channel configuration. |
GET /api/v1/projects/{id}/notifications/deliveries | Recent in-app alerts and email outcomes for the project (and tenant-wide ones). |
GET /api/v1/tenant/notifications/event-types | List event types available to tenant routes. |
GET /api/v1/tenant/notifications | List tenant-wide routes. |
POST /api/v1/tenant/notifications | Create a tenant-wide route. |
PUT /api/v1/tenant/notifications/{route_id} | Update a tenant-wide route. |
DELETE /api/v1/tenant/notifications/{route_id} | Delete a tenant-wide route. |
GET /api/v1/tenant/notifications/deliveries | Recent tenant-wide in-app alerts and email outcomes. |
Route create accepts event_type, channel_type (email or in_app), channel_config ({"recipients": [...]} for email, {} for in-app), and optional enabled. Update accepts any of these fields. Tenant route responses include project_id: null.
Best practices
- Start with refresh failures and schema drift. These are the two events most likely to require immediate operator attention.
- Use in-app alerts for high-frequency events (query failure spikes) and email for low-frequency ones that need someone's attention (schema drift, SLA breaches).
- Do not route all events to the same channel. Notification fatigue leads to ignored alerts. Be selective about what generates a notification.
- Test routes after creation. Use the test button to verify delivery before relying on the route during an incident.
- Review disabled routes periodically. Disabling a route during maintenance and forgetting to re-enable it is a common source of missed alerts.