Alert Notification¶
Trust3AI's alert rules live in the Trust3 Managed folder, in per-application subfolders (for example Infra dashboards, or an Omni Connector title for connector rules), alongside the dashboards, and each carries a severity label (critical or warn) you can route on. The rules ship with no notification settings, so you decide where alerts go by configuring two things in your plane's Grafana:
- A contact point: the destination (Slack, PagerDuty, Microsoft Teams, webhook).
- A notification policy: the routing that sends an alert to the right contact point, usually by its
severitylabel.
This works for the Trust3-managed rules and any rules you add yourself.
Prerequisites
- A Self-Managed runtime plane, and the
adminsign-in for its Grafana. The Grafana URL and default credentials are shown under System Applications → Grafana in the plane's console; on non-EKS planes (no URL there) reach Grafana withkubectl port-forward svc/grafana 3000:80 -n <runtime-plane-name>. - Destination details: for Slack / Microsoft Teams / PagerDuty / webhook, the webhook URL, API token, or integration key.
Set your own Grafana admin password
The default is the runtime plane name, shown on the console. Because contact points store live secrets (Slack tokens, webhook keys), change it to your own in Application Configs on the plane console (adminPassword) before adding them. A change made inside Grafana's profile resets on pod restart.
Email is not available
The plane's Grafana has no SMTP server configured, so email contact points cannot send. Use Slack, Microsoft Teams, PagerDuty, or a webhook.
Add your own alert rule¶
Besides the Trust3-managed rules, you can add your own. Grafana evaluates your query on a schedule and fires when the condition is met.
- Go to Alerting → Alert rules and select + New alert rule.
- Under Enter alert rule name, name the rule.
- Under Define query and alert condition, pick the Prometheus data source, build the query, and set the Alert condition (for example,
WHEN QUERY IS ABOVEa threshold). - Under Add folder and labels, add a lowercase
severitylabel (criticalorwarn) so the rule routes through your notification policies. - Under Set evaluation behavior, choose an evaluation group and a Pending period (how long the condition must hold before firing).
- Under Configure notifications, select a Contact point, or leave routing to your notification policy. See Step 1: Create a contact point and Step 2: Configure a notification policy.
- (Optional) Under Configure notification message, add a Summary and Description.
- Select Save.
Grafana reference: Create alert rules · Set up Grafana Alerting
Step 1: Create a contact point¶
A contact point is where alerts are delivered.
- Go to Alerting → Notification configuration and open the Contact points tab.
- Select + New contact point.
- Fill in the fields described below.
- Select Test to confirm it works, then Save contact point.
| Field | What to enter |
|---|---|
| Name | A unique name for this contact point. |
| Integration | The channel type (Slack, PagerDuty, Microsoft Teams, Webhook, etc.); the other fields follow from it. See the supported integrations. |
| Integration settings | The connection details, for example the webhook URL or channel for Slack. |
| Optional settings | Title/message overrides and whether to notify on resolved alerts. To apply a notification template (Slack): under Optional Slack settings → Edit the message / text body, select the template trust3ai.alert.message.template, and save. The trust3ai.alert.message.template renders the alert's Summary (not its Description), so put the text responders need in Summary. |
Build your own notification template (optional)
To create your own template, see Grafana's Create a notification template and Associate a notification template with a contact point.
Example A: Webhook contact point
- Name:
Ops Webhook - Integration:
Webhook - URL: your endpoint, for example
https://alerts.yourcompany.com/grafana
Example B: Slack contact point
Pick one method:
- Webhook URL: a Slack incoming webhook for your channel. See Grafana: webhook URL.
- API token: a Slack bot token plus the target channel in Recipient. See Grafana: Slack API token.
Example: Name Critical Slack, Integration Slack, then the webhook URL or token + recipient.
Grafana reference: Manage contact points
Step 2: Configure a notification policy¶
A notification policy routes firing alerts to your contact points. It lives under Alerting → Notification configuration → Notification policies, with one default policy (a catch-all) plus routes you add under it. An alert is delivered by the first route whose labels match, or by the default policy if none match.
Option A: Point the default policy at one destination¶
- Open the Notification policies tab.
- On the Default policy, select More → Edit.
- Set Default contact point to a contact point from Step 1.
- (Optional) Set Group by and the Group wait / Group interval / Repeat interval.
- Select Update policy.
The default policy ships pointing at a no-op receiver (empty) that delivers nowhere, so set its contact point to a real destination; otherwise any alert that matches no route is silently dropped. Select Test on that contact point to confirm it delivers.
Option B: Route by severity¶
Send each severity to a different contact point by adding one route per severity.
- On the Notification policies tab, select + Add route.
- Under Matching labels, set Label
severity, Operator=, and Valuecritical. - Set the Contact point for this route (for example,
Critical Slack). - (Optional) Turn on Override grouping and set Group by; turn on Continue matching subsequent sibling nodes to let the alert also match later routes.
- (Optional) Turn on Override general timings and set Group wait / Group interval / Repeat interval.
- Select Add route. Repeat for each severity (for example, a
warnroute to another contact point).
Set the default contact point too
Option B only adds routes; the default (catch-all) policy still points at the no-op empty receiver. Set the default policy's contact point as in Option A, or any alert that matches no route (a rule with no severity label, or a typo like warning) is silently dropped.
Example: route by severity
severity=critical→Critical Slack(a Slack contact point)severity=warn→Ops Webhook- Default policy →
Ops Webhook(catch-all)
Grafana reference: Manage notification policies
Step 3: Verify¶
- Under Alerting → Alert rules, confirm the rule's state (Normal, Pending, Firing).
- When it fires (or via Test on the contact point), confirm the notification arrives.
Copy a managed alert rule for editing¶
The Trust3-managed rules are provisioned by Trust3AI: you can edit one in Grafana, but your edit is overwritten on the next update (a deleted rule is recreated; a pause is kept). To change the alerting itself, copy the rule, edit the copy, and pause the original:
- Open the rule → More → Duplicate.
- Give it a new name and save it to your own folder / evaluation group, outside Trust3 Managed.
- Save; the copy gets a new random UID, so Trust3AI doesn't manage it.
- Pause the original managed rule, so that only your copy fires.
- Edit the copy freely; your edits persist across updates.
- Prev topic: Monitoring
- Next topic: Runtime API Reference