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.
What the integration gives you
- One observability stack. Authorization metrics live next to your services’ APM, logs and infrastructure metrics, so you can correlate a slow checkout with a slow permission check.
- Latency you can alert on. gRPC request counts and latency distributions for every SpiceDB API call, with p50, p95 and p99 once percentiles are enabled.
- Cache visibility. Hits, misses and cache cost, which explain most latency changes in a Zanzibar-style system.
- Datastore health. Connections, CPU, IOPS, throughput and latency for the managed CockroachDB or RDS datastore behind your permission system.
- Materialize and housekeeping. How far precomputed permissions lag behind writes, and how garbage collection of expired relationships is going.
- No agent to install. AuthZed Cloud sends the metrics for you; you provide an API key.
How to set up the AuthZed Cloud Datadog integration
Setup happens in the AuthZed dashboard and takes a couple of minutes:
- Open the AuthZed dashboard homepage.
- Select the permission system you want to send metrics for.
- Open its Settings tab.
- Scroll to the Datadog Metrics block.
- Enter your Datadog API key.
- Enter your Datadog site if it isn’t the default, for example
datadoghq.euorus5.datadoghq.com. - Click Save. Metrics start arriving shortly afterwards.
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:
| Area | Example metrics | What it tells you |
|---|---|---|
| API traffic and latency | grpc.server_handled, grpc.server_started, grpc.server_handling (sum, count, buckets) | Request volume, errors and latency of checks, lookups and writes |
| Cache | spicedb.cache.hits, spicedb.cache.misses, spicedb.cache.cost_added, spicedb.cache.cost_evicted | How much work SpiceDB avoids; falling hit rates usually precede rising latency |
| Connection pool | spicedb.datastore.pgx.acquired_connections, idle_connections, waited_connections | Whether queries wait for a connection; above zero waited means the pool or datastore is saturated |
| CockroachDB datastore | cockroachdb.request_latency, cockroachdb.system_cpu_usage, cockroachdb.read_iops, capacity_available | Health and headroom of the database under your permission system |
| RDS datastore | rds.read_latency, rds.write_latency, rds.system_cpu_usage, rds.database_connections | The same, for RDS-backed deployments |
| Materialize | materialize.updater.revision_processing_lag, materialize.hydrator.permission_hydrate, process CPU, memory and disk | How fresh precomputed permissions are, where Materialize is enabled |
| Expired relationships | spicedb.datastore.gc.expired_relationships, gc.duration, gc.failure | Cleanup of expired and deleted relationships |
| Consistency | spicedb.middleware.consistency_assigned | How requests split across consistency levels, such as fully consistent versus cached |
| Hooks and access controls | spicedb.hooks.latency, fgam.config_entities | Time spent in middleware hooks, including fine-grained access management |
| Integration health | metrics.up, process.cpu, process.virtual_memory | Whether metrics are flowing, and SpiceDB process resources |
See Datadog’s integration page for the full list and units.
A dashboard and monitors worth building
These monitors cover the failure modes that matter most for an authorization service. Adjust thresholds to your traffic and service-level objectives:
- Metrics stopped arriving. Alert when
authzed_cloud.metrics.upreports no data, so a broken pipeline doesn’t hide a real problem. - Connection pool saturation. Alert when
authzed_cloud.spicedb.datastore.pgx.waited_connectionsstays above zero. - Latency SLO. Alert on p99 of the gRPC server handling latency against your target, once percentiles are enabled.
- Cache hit rate drop. Graph
hits / (hits + misses)and alert on a sustained fall; it usually explains rising latency. - Materialize freshness. Alert when
materialize.updater.revision_processing_lagexceeds what your search or data pipelines can tolerate. - Datastore headroom. Alert on datastore CPU and available capacity before they become incidents.
# 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.