Skip to content
Last updated December 3, 2026

Operations

What PromptGate tells the people who run it: every request in a log and in numbers, events when something needs attention, a tamper-evident trail of every change, and alerts when an endpoint behaves unlike itself.

feature does
request log every request — model, MCP, API — with key, end user, status, tokens, cost and timing; promptgate logs, stats configuration
metrics Prometheus on a separate port: requests, latency, tokens, cost, spend, guardrail findings, webhooks, MCP and API traffic metrics
events a budget running out, a provider failing, an MCP server down, an OAuth connection that needs a person, a list that can’t be fetched events
webhooks events sent to your URL, signed (Standard Webhooks), retried for two days; promptgate webhooks lists, tests and redelivers webhooks
audit trail every change and sign-in from the web UI, the CLI and agents, hash-chained so a changed or deleted entry shows; audit verify audit
anomaly alerts each AI Gateway endpoint against its own past week: error rate, latency, spend anomalies
telemetry traces, metrics and logs to any OpenTelemetry backend, with the GenAI conventions, cost, key and guardrail findings telemetry
Management API stats, logs, budgets, config, keys and more as JSON over HTTP, for scripts and dashboards; keys with control: read Management API

Everything in one config:

logging:
retention: 7d # request rows
stats_retention: 90d # per-minute totals behind stats and budgets
metrics:
listen: 127.0.0.1:9464 # off by default
token: ${PROMPTGATE_METRICS_TOKEN}
webhooks:
ops-alerts:
url: https://hooks.example.com/promptgate
secret: ${PROMPTGATE_WEBHOOK_SECRET} # whsec_… or 24+ bytes
events: [budget.*, provider.failing, mcp.server_down]
siem:
url: https://siem.internal.example/ingest
secret: ${SIEM_WEBHOOK_SECRET}
events: ["*"] # every event, audit entries included
private: true # the receiver is on a private network
audit:
retention: 400d # default: kept forever
anomalies:
sensitivity: 3.5 # higher is calmer
telemetry:
otlp:
endpoint: http://otel-collector:4318 # traces and metrics; logs: { enabled: true }

The log writer, the audit trail and webhook deliveries work in the background, off the request path.

Was this page helpful?