Skip to Content
AgentShield
Operations

Monitoring

What to watch in an AgentShield deployment, how to start Prometheus and Grafana, and the signals that indicate a problem.

AgentShield gives you three sources of operational truth: health endpoints for orchestration, Prometheus metrics for trends and alerting, and security events for what agents did.

Start the monitoring stack

docker compose --profile app --profile observability up -d --build
ToolURLNotes
Grafanahttp://127.0.0.1:3001User admin, password GRAFANA_ADMIN_PASSWORD (development default). The AgentShield dashboard is the home page
Prometheushttp://127.0.0.1:9090Scrapes every service on the Compose network. Keeps 15 days locally

Service metrics ports are not published to the host; only Prometheus reaches them.

Golden signals

SignalMetricHealthy looks like
Gateway trafficrate(agentshield_gateway_http_requests_total[5m]) by routeSteady, matching agent activity
Gateway errors5xx share of gateway requestsNear zero
Gateway latencyagentshield_gateway_http_request_duration_secondsStable p95; dominated by database round trips
Decision mixagentshield_gateway_decisions_total by outcomeDenies are expected but should not spike
Execution resultsagentshield_gateway_executions_total by tool, resultMostly completed
Adapter latencyagentshield_gateway_adapter_duration_secondsWithin tool deadlines
Analyzer availabilityagentshield_gateway_analysis_total{status="unavailable"}Near zero
Injection findingsagentshield_gateway_analysis_findings_total{rule_id=~"PI.*"}Low, investigated
Event pipeline lagagentshield_relay_outbox_oldest_secondsSeconds, not minutes

Shipped alerts

AlertFires whenFirst check
AgentShieldServiceDownA service missed scrapes for 2 minutesContainer or pod status and logs
GatewayServerErrorsOver 5% of gateway requests return 5xx for 5 minutesPostgreSQL and Redis readiness
GatewayCircuitOpenAn open circuit refused calls to a toolThe tool's upstream availability
AnalyzerUnavailableOver 10% of analyses unavailable for 10 minutesAnalyzer health, INTELLIGENCE_TIMEOUT, content size
PromptInjectionSpikeMore than 20 injection findings in 15 minutesAlerts in the console; which tool and resource
OutboxFallingBehindOldest unpublished event over 1 minute for 5 minutesRelay logs, NATS availability
OutboxUnreadableThe relay cannot read the outboxRelay database connectivity and role
EvidenceWritesFailingEvidence bundles retried or droppedObject storage availability and credentials

No Alertmanager is configured by default; alerts appear in Prometheus and Grafana. Add an Alertmanager with your own receivers to notify people.

Health checks

ServiceReady means
GatewayPostgreSQL and Redis answer within one second
Control planePostgreSQL answers
IntelligenceRuleset loaded
Event relayPostgreSQL and NATS answer; oldest queued event under one minute

Wire /health/live to liveness and /health/ready to readiness in your orchestrator. The Kubernetes manifests already do.

Per-organization monitoring

Prometheus deliberately has no tenant labels. For per-organization views, use the control plane:

  • Overview in the console for agents, approvals, incidents, reliability, and event mix.
  • GET /api/v1/metrics/reliability for per-tool calls, failures, success rate, and latency.
  • GET /api/v1/events and the event stream for activity.
  • NATS consumers for streaming into your SIEM.

Was this page helpful?

On this page