PagerDuty Alerts

Route Future AGI alerts to PagerDuty so your on-call team gets paged when something breaks.

📝
TL;DR

Connect your PagerDuty service and Future AGI will send alerts through PagerDuty’s Events API v2 when issues are detected - error rate spikes, cost thresholds, or other conditions you’ve configured. Alerts auto-resolve when the condition clears.

What this does

This integration routes alerts from Future AGI to PagerDuty. When a monitored condition triggers (for example, your LLM error rate spikes or costs exceed a threshold), Future AGI sends an alert to PagerDuty which pages your on-call team.

Alerts are deduplicated per alert type and organization, so the same issue won’t page you twice. When the condition clears, Future AGI sends a resolve event to close the incident automatically.

What gets sent

Each alert is a PagerDuty Events API v2 event:

FieldDescription
event_actiontrigger when the alert fires, resolve when the condition clears
payload.summaryHuman-readable description of what happened
payload.severitycritical, error, warning, or info
payload.sourceprism-gateway
payload.custom_detailsAdditional context (error counts, thresholds, affected models)
dedup_keyAuto-generated from alert type + org ID to prevent duplicate pages

Before you start

You’ll need:

  • A PagerDuty account with at least one service configured
  • An Events API v2 integration key (routing key) from that service
  • Admin or Owner role in your Future AGI workspace

To get your routing key: go to PagerDuty > Services > your service > Integrations > Add Integration > Events API v2. Copy the Integration Key.


Connect PagerDuty

Open Integrations

Go to Settings > Integrations in your Future AGI workspace. Click Add Integration or click the PagerDuty card.

Integrations list page

Enter your routing key

On the Credentials step, paste your Events API v2 routing key.

PagerDuty credentials form

Click Validate & Continue. Future AGI sends a test change event to verify the key is valid.

Configure sync settings

Set the sync interval for how often Future AGI checks for alertable conditions.

PagerDuty sync settings

Click Connect Integration.

Done

PagerDuty is connected. Alerts will fire when monitored conditions are triggered.


Alert lifecycle

  1. Trigger - Future AGI detects an alertable condition and sends a trigger event to PagerDuty. This creates an incident and pages your on-call team.
  2. Deduplicate - If the same condition fires again before it’s resolved, PagerDuty groups it under the same incident (same dedup_key). No duplicate pages.
  3. Resolve - When the condition clears, Future AGI sends a resolve event. PagerDuty auto-resolves the incident.

Sync status

Monitor your integration from the detail page (Settings > Integrations > click your PagerDuty connection).

StatusMeaningAction
ActiveConnected and monitoringNone needed
PausedYou paused alerting manuallyClick Resume when ready
ErrorRouting key revoked or PagerDuty rejected the requestCheck your routing key

Troubleshooting

Not getting paged when expected

Check that your PagerDuty service has an on-call schedule configured and that the Events API v2 integration is enabled on the service. Also verify the routing key matches the integration key shown in PagerDuty.

Getting duplicate pages

This shouldn’t happen - alerts are deduplicated by alert type and organization. If you’re seeing duplicates, check if you have multiple PagerDuty integrations configured in Future AGI pointing to the same service.

Connection shows Error status

Your routing key may have been revoked or the PagerDuty service was deleted. Generate a new Events API v2 integration key, then edit the integration to update it.


What’s next

Was this page helpful?

Questions & Discussion