SPICEDB + DATADOG

Monitor SpiceDB in Datadog: The AuthZed Cloud Integration

Authorization sits in the path of almost every request your product serves. If permission checks slow down, everything slows down. AuthZed Cloud, the managed SpiceDB service, has an official Datadog integration that sends latency, cache, datastore and Materialize metrics straight into the Datadog account you already use.

Last reviewed November 2026. Based on the AuthZed Cloud integration page in Datadog’s documentation.

Short answer

Yes, SpiceDB integrates with Datadog. AuthZed Cloud is listed as an official integration in Datadog’s documentation. You turn it on in the AuthZed dashboard by entering a Datadog API key on a permission system’s Settings tab, and metrics such as request latency, cache hit and miss counts, datastore connections and Materialize lag arrive under the authzed_cloud. prefix. Self-hosted SpiceDB exposes Prometheus metrics that the Datadog Agent can collect.

New to SpiceDB? A two-minute introduction for Datadog users

SpiceDB is an open-source permissions database inspired by Google’s Zanzibar, the system behind sharing in Google Drive and YouTube. Instead of scattering “can this user do this?” logic through every service, teams describe their permission rules in a schema, store relationships such as Alice is on the Finance team or this report is in that folder, and ask SpiceDB one question per request.

That makes SpiceDB a tier-zero dependency, in the same category as your primary database and your identity provider. It is exactly the kind of service Datadog users already watch closely: high request volume, strict latency targets, a cache that does a lot of work, and a datastore underneath. AuthZed runs it as a managed service, AuthZed Cloud, and the Datadog integration brings its health into the dashboards and alerts your on-call team already uses.

Your apps, APIsand AI agents "Can Alice view this?" checks SpiceDB on AuthZed Cloud API: checks, lookups, writes Cache and dispatch DatastoreCockroachDB or RDS Materializeif enabled metricsyour API key Datadog Dashboards: latency, cache, datastore Monitors: alerts before users notice Correlation with your APM and logs One place for on-call
Applications ask SpiceDB permission questions; AuthZed Cloud sends SpiceDB’s metrics to your Datadog account.

What the integration gives you

How to set up the AuthZed Cloud Datadog integration

Setup happens in the AuthZed dashboard and takes a couple of minutes:

  1. Open the AuthZed dashboard homepage.
  2. Select the permission system you want to send metrics for.
  3. Open its Settings tab.
  4. Scroll to the Datadog Metrics block.
  5. Enter your Datadog API key.
  6. Enter your Datadog site if it isn’t the default, for example datadoghq.eu or us5.datadoghq.com.
  7. Click Save. Metrics start arriving shortly afterwards.
AuthZed dashboard › my-permission-system OverviewSchemaRelationshipsSettings Datadog Metrics Send this permission system's metrics to your Datadog account. API key •••••••••••••••••••••••••••••••• Datadog site datadoghq.com Save Illustration based on the published setup steps, not a screenshot.
Where the setting lives: the Datadog Metrics block on a permission system’s Settings tab.

One step people miss: for latency graphs to show p50, p95 and p99, turn Percentiles on for the gRPC server handling latency metric in Datadog’s Metrics Summary view. Datadog’s setup notes refer to it as authzed.grpc.server_handling; the metric list shows it as authzed_cloud.grpc.server_handling.

To remove the integration later, return to the same block and click Remove; it can take several minutes to stop. On the us2.ddog-gov.com government site, check your Integrations page or ask your administrator whether the integration is available to your organization.

Which metrics you get

Every metric starts with authzed_cloud.. The most useful groups:

AreaExample metricsWhat it tells you
API traffic and latencygrpc.server_handled, grpc.server_started, grpc.server_handling (sum, count, buckets)Request volume, errors and latency of checks, lookups and writes
Cachespicedb.cache.hits, spicedb.cache.misses, spicedb.cache.cost_added, spicedb.cache.cost_evictedHow much work SpiceDB avoids; falling hit rates usually precede rising latency
Connection poolspicedb.datastore.pgx.acquired_connections, idle_connections, waited_connectionsWhether queries wait for a connection; above zero waited means the pool or datastore is saturated
CockroachDB datastorecockroachdb.request_latency, cockroachdb.system_cpu_usage, cockroachdb.read_iops, capacity_availableHealth and headroom of the database under your permission system
RDS datastorerds.read_latency, rds.write_latency, rds.system_cpu_usage, rds.database_connectionsThe same, for RDS-backed deployments
Materializematerialize.updater.revision_processing_lag, materialize.hydrator.permission_hydrate, process CPU, memory and diskHow fresh precomputed permissions are, where Materialize is enabled
Expired relationshipsspicedb.datastore.gc.expired_relationships, gc.duration, gc.failureCleanup of expired and deleted relationships
Consistencyspicedb.middleware.consistency_assignedHow requests split across consistency levels, such as fully consistent versus cached
Hooks and access controlsspicedb.hooks.latency, fgam.config_entitiesTime spent in middleware hooks, including fine-grained access management
Integration healthmetrics.up, process.cpu, process.virtual_memoryWhether metrics are flowing, and SpiceDB process resources

See Datadog’s integration page for the full list and units.

A dashboard and monitors worth building

SpiceDB on AuthZed CloudIllustrative data · Past 4 hoursRequest latency (ms): p50, p95, p99p99 spikep50p95p99Cache hit rate88.4%hits ÷ (hits + misses)Waited datastore connections0above zero means the pool is saturatedRequests per secondDatastore connectionsMaterialize revision lag0.8 swhere enabledMetrics flowingauthzed_cloud.metrics.up
An example layout built from the integration’s metrics. The data shown is illustrative.

These monitors cover the failure modes that matter most for an authorization service. Adjust thresholds to your traffic and service-level objectives:

# Example monitor queries (adapt names, tags and thresholds)
max(last_10m):max:authzed_cloud.spicedb.datastore.pgx.waited_connections{*} > 0
avg(last_15m):avg:authzed_cloud.materialize.updater.revision_processing_lag{*} > 30

Running SpiceDB yourself? Use the Datadog Agent

The integration above is for AuthZed Cloud. If you run open-source SpiceDB or SpiceDB Enterprise yourself, SpiceDB serves Prometheus metrics on port 9090 at /metrics by default, including gRPC latency, cache hits and misses, dispatch and datastore query latency. The Datadog Agent’s OpenMetrics check can collect them:

# conf.d/openmetrics.d/conf.yaml
instances:
  - openmetrics_endpoint: http://spicedb:9090/metrics
    namespace: spicedb
    metrics:
      - grpc_server_.*
      - spicedb_.*

On Kubernetes, the same settings can go in Autodiscovery annotations on the SpiceDB pods. Metric names differ from the managed integration’s authzed_cloud. prefix, so build dashboards from what the Agent reports.

Frequently asked questions

Does SpiceDB have a Datadog integration?

Yes. AuthZed Cloud, the managed SpiceDB service from AuthZed, has an official integration listed in Datadog’s documentation. Self-hosted SpiceDB can be monitored with the Datadog Agent’s OpenMetrics check against SpiceDB’s Prometheus endpoint.

Do I need to install the Datadog Agent for AuthZed Cloud?

No. AuthZed Cloud sends the metrics to Datadog itself. You only enter a Datadog API key, and your Datadog site if it isn’t the default, in the AuthZed dashboard.

Why don’t I see p95 or p99 latency?

Turn on the Percentiles setting for the gRPC server handling latency metric in Datadog’s Metrics Summary view, as Datadog’s setup instructions describe.

What should I alert on first?

Start with metrics flowing, waited datastore connections above zero, p99 request latency against your objective, and cache hit rate. Add Materialize lag if you use Materialize.

What is SpiceDB used for?

SpiceDB answers permission questions for applications, APIs and AI agents: whether a person can act on an object, and which objects they can access. It supports roles, sharing, nested teams and hierarchies, and is open source under the Apache 2.0 licence.

New to SpiceDB?

See relationship-based authorization working before you wire up a single metric. The 10-minute quickstart runs SpiceDB locally, and the interactive demos show it inside real applications.

Try the quickstart · Explore the demos · Get a custom demo

SpiceDB Field Resources is maintained by AuthZed, the company that created SpiceDB. Datadog is a trademark of Datadog, Inc.; AuthZed and Datadog are independent companies. Diagrams on this page are illustrations, not screenshots. Integration details reflect Datadog’s documentation as of November 2026.