Guardrailz
HomeHubBlogsPricingDocs

Introduction

  • Overview
  • Architecture
  • Core Concepts

Getting Started

  • Installation
  • Quickstart
  • Playground

API

  • Validate API
  • Profiles API
  • Analytics API
  • Error Handling

SDK

  • Overview
  • Client
  • Guardrails
  • Examples

Guardrails

  • Overview
  • Input Guardrails
  • Output Guardrails
  • Tool Guardrails
  • Custom Guardrails

Profiles

  • Overview
  • Built-in Profiles
  • Custom Profiles
  • Profile Compilation

Analytics

  • Overview
  • Events
  • Queries
  • Dashboards

Deployment

  • Environment
  • Security
  • Scaling
  1. Docs
  2. /analytics
  3. /overview

Analytics Overview

Analytics in Guardrails provides deep visibility into how your AI systems behave in production.

It enables you to measure safety, detect risk, optimize performance, and prove compliance across all guardrail executions.

Why analytics matters

Without analytics, AI safety systems become opaque and unverifiable.

Guardrails analytics allows you to:

  • Track every guardrail execution
  • Measure pass/fail rates over time
  • Identify risky prompts and failure patterns
  • Monitor latency and performance impact
  • Audit usage for compliance and governance

What is tracked

Each guardrail execution emits structured analytics events, including:

  • Execution outcome (pass / fail)
  • Execution latency
  • Guardrail-level results
  • Profile used
  • API key and user context
  • Timestamp and environment metadata

These events form the foundation for dashboards, alerts, and audits.

Analytics architecture (high-level)

Guardrails analytics follows an event-driven model:

  1. Runtime execution emits analytics events
  2. Events are ingested into the analytics pipeline
  3. Queries aggregate events into metrics
  4. Dashboards visualize trends and anomalies

This design ensures analytics is decoupled, scalable, and non-blocking.

Who should use analytics

Analytics is designed for:

  • Engineering teams monitoring production AI
  • Security teams auditing safety controls
  • Compliance teams validating policy enforcement
  • Product teams optimizing user experience

Next steps

  • Learn how events are structured → Events
  • Understand analytics queries → Queries
  • Explore dashboards and metrics → Dashboards