Skip to main content

Overview

Grantex monitors all authorization events in real time and fires alerts when agent behavior deviates from expected patterns. Anomaly detection ships with 10 built-in rules that cover the most common threats, a custom rule DSL for organization-specific policies, and multi-channel alerting to Slack, PagerDuty, Datadog, email, and webhooks. Every alert follows a clear lifecycle — open, acknowledged, resolved — with full traceability of who responded and what action was taken. Anomaly detection is available on all plans including the free tier.

Built-in Rules

Grantex ships with 10 detection rules that require zero configuration: Enable or disable individual rules via the dashboard or API:

Custom Rules

Create rules tailored to your threat model. Custom rules support agent filters, scope filters, time windows, and thresholds.

Condition Fields

Alert Lifecycle

Every anomaly alert moves through a defined lifecycle:
Open — The alert was just detected. Notification channels fire immediately. Acknowledged — A responder claims ownership. The alert is no longer unattended. Resolved — The issue is fixed. A resolution note is attached for the audit trail.

Managing Alerts

Notification Channels

Route alerts to the tools your team uses:

Creating a Channel

Each channel has a severities filter. Only alerts matching the configured severities are sent to that channel. This lets you route critical alerts to PagerDuty while sending low-severity alerts to a Slack monitoring channel.

SSE Event Stream

Subscribe to real-time anomaly events via Server-Sent Events:
Or use curl:

Metrics API

Query aggregate anomaly metrics:
Response:

Prometheus Metrics

The GET /metrics endpoint exposes Prometheus-format counters:

Dashboard

The developer portal includes a full anomaly detection dashboard at /dashboard/anomalies:
  • Severity overview — Open alert counts by severity with color-coded indicators
  • Activity chart — 14-day bar chart of alert volume
  • Alert list — Filterable by status and severity with inline acknowledge/resolve/revoke actions
  • Alert detail — Full context, timeline, and resolution notes
  • Rule builder — View built-in rules, create custom rules, toggle enable/disable
Last modified on July 11, 2026