Deepgram Production Checklist
Contents
Overview
Comprehensive checklist for deploying Deepgram integrations to production with singleton client, health checks, Prometheus metrics, alert rules, and go-live procedures.
Prerequisites
- Completed development and staging testing
- Access to production secrets management
- Monitoring infrastructure configured
- On-call rotation established
Instructions
Step 1: Verify API Configuration
Create production API key with minimal scopes. Store in secrets manager (not env vars in code). Set 90-day expiration. Prepare fallback key. Understand rate limits for your tier.
Step 2: Implement Error Handling
Catch all API errors with structured logging. Add retry logic with exponential backoff. Implement circuit breaker pattern. Define fallback behavior for API failures.
Step 3: Configure Performance
Set up singleton client with connection pooling. Configure 30s request timeout. Limit concurrent requests. Optimize audio preprocessing. Enable response caching where applicable.
Step 4: Set Up Health Check Endpoint
Create /health endpoint that tests Deepgram API connectivity and reports latency. Return 200 for healthy, 503 for unhealthy.
Step 5: Configure Production Metrics
Define Prometheus counters for transcription total (by status), histograms for duration, counters for audio seconds processed and rate limit hits.
Step 6: Deploy Alert Rules
Alert on error rate >5% (5min, critical), P95 latency >10s (warning), rate limit hits >10/hr (warning), and health check failure >2min (critical).
See detailed implementation for advanced patterns.
Output
- Verified production API configuration
- Production-safe singleton client
- Health check endpoint
- Prometheus metrics and Grafana dashboard
- AlertManager rules for key thresholds
Error Handling
| Issue |
Cause |
Solution |
| API key expired |
No rotation |
Set expiration alerts, auto-rotate |
| High error rate |
Deepgram issue |
Check status page, enable fallback |
| Rate limiting |
Too many requests |
Implement backoff, increase tier |
| Health check fail |
Network/API issue |
Verify connectivity, check status |
Examples
Pre-Deployment Checklist
| Category |
Key Items |
| API Config |
Prod key, secrets manager, key rotation, rate limits |
| Error Handling |
Retries, circuit breaker, fallback, error logging |
| Performance |
Connection pooling, timeouts, caching, preprocessing |
| Security |
HTTPS, input validation, PII redaction, audit logs |
| Monitoring |
Health check, metrics, alerts, dashboards |
Go-Live Timeline
| Phase |
Actions |
| D-7 |
Load test, security review, documentation |
| D-0 |
Smoke test, dashboards open, on-call confirmed |
| D+1 |
No critical alerts, error rate within SLA |
Resources
1---2name: deepgram-prod-checklist3description: Execute Deepgram production deployment checklist. Use when preparing for production launch, auditing production readiness, or verifying deployment configurations. Trigger with phrases like "deepgram production", "deploy deepgram", "deepgram prod checklist", "deepgram go-live", "production ready deepgram".4license: MIT5---6# Deepgram Production Checklist78## Contents9- [Overview](#overview)10- [Prerequisites](#prerequisites)11- [Instructions](#instructions)12- [Output](#output)13- [Error Handling](#error-handling)14- [Examples](#examples)15- [Resources](#resources)1617## Overview18Comprehensive checklist for deploying Deepgram integrations to production with singleton client, health checks, Prometheus metrics, alert rules, and go-live procedures.1920## Prerequisites21- Completed development and staging testing22- Access to production secrets management23- Monitoring infrastructure configured24- On-call rotation established2526## Instructions2728### Step 1: Verify API Configuration29Create production API key with minimal scopes. Store in secrets manager (not env vars in code). Set 90-day expiration. Prepare fallback key. Understand rate limits for your tier.3031### Step 2: Implement Error Handling32Catch all API errors with structured logging. Add retry logic with exponential backoff. Implement circuit breaker pattern. Define fallback behavior for API failures.3334### Step 3: Configure Performance35Set up singleton client with connection pooling. Configure 30s request timeout. Limit concurrent requests. Optimize audio preprocessing. Enable response caching where applicable.3637### Step 4: Set Up Health Check Endpoint38Create `/health` endpoint that tests Deepgram API connectivity and reports latency. Return 200 for healthy, 503 for unhealthy.3940### Step 5: Configure Production Metrics41Define Prometheus counters for transcription total (by status), histograms for duration, counters for audio seconds processed and rate limit hits.4243### Step 6: Deploy Alert Rules44Alert on error rate >5% (5min, critical), P95 latency >10s (warning), rate limit hits >10/hr (warning), and health check failure >2min (critical).4546See [detailed implementation](${CLAUDE_SKILL_DIR}/references/implementation.md) for advanced patterns.4748## Output49- Verified production API configuration50- Production-safe singleton client51- Health check endpoint52- Prometheus metrics and Grafana dashboard53- AlertManager rules for key thresholds5455## Error Handling56| Issue | Cause | Solution |57|-------|-------|----------|58| API key expired | No rotation | Set expiration alerts, auto-rotate |59| High error rate | Deepgram issue | Check status page, enable fallback |60| Rate limiting | Too many requests | Implement backoff, increase tier |61| Health check fail | Network/API issue | Verify connectivity, check status |6263## Examples6465### Pre-Deployment Checklist66| Category | Key Items |67|----------|-----------|68| API Config | Prod key, secrets manager, key rotation, rate limits |69| Error Handling | Retries, circuit breaker, fallback, error logging |70| Performance | Connection pooling, timeouts, caching, preprocessing |71| Security | HTTPS, input validation, PII redaction, audit logs |72| Monitoring | Health check, metrics, alerts, dashboards |7374### Go-Live Timeline75| Phase | Actions |76|-------|---------|77| D-7 | Load test, security review, documentation |78| D-0 | Smoke test, dashboards open, on-call confirmed |79| D+1 | No critical alerts, error rate within SLA |8081## Resources82- [Deepgram Production Guide](https://developers.deepgram.com/docs/production-guide)83- [Deepgram SLA](https://deepgram.com/sla)84- [Support Portal](https://support.deepgram.com)