Skill站外收录 @skilllib/skill-2117939930272415193
customerio-prod-checklist
确保 Customer.io 生产环境集成符合上线标准,涵盖凭证配置、数据质量审计、营销活动设置、邮件送达能力验证、关键指标监控告警、端到端测试、文档完备性及回滚预案等全流程检查项。
开发运维 AI 技能
Skills.MD
# Customer.io Production Checklist
## Overview
Comprehensive checklist for deploying Customer.io integrations to production.
## Prerequisites
- Customer.io integration complete
- Access to production credentials
- Testing completed in staging environment
## Pre-Production Checklist
### 1. Credentials & Configuration
```bash
# Verify production credentials are set
echo "Checking credentials..."
[ -n "$CUSTOMERIO_SITE_ID" ] && echo "Site ID: OK" || echo "Site ID: MISSING"
[ -n "$CUSTOMERIO_API_KEY" ] && echo "API Key: OK" || echo "API Key: MISSING"
# Verify correct region
echo "Region: ${CUSTOMERIO_REGION:-us}"
```
**Checklist:**
- [ ] Production Site ID configured (different from dev)
- [ ] Production API Key configured (different from dev)
- [ ] Correct region selected (US or EU)
- [ ] Credentials stored in secrets manager
- [ ] API keys have appropriate permissions
### 2. Integration Quality
```typescript
// scripts/integration-audit.ts
async function auditIntegration(): Promise<AuditResult> {
const results: AuditResult = {
passed: [],
warnings: [],
failures: []
};
// Check identify calls have required attributes
// Check event names follow naming convention
// Check timestamps are Unix seconds
// Check no PII in unsafe fields
return results;
}
```
**Checklist:**
- [ ] All identify calls include email attribute
- [ ] User IDs are consistent across systems
- [ ] Event names follow `snake_case` convention
- [ ] Timestamps are Unix seconds (not milliseconds)
- [ ] No PII in event names or segment names
- [ ] Error handling implemented for all API calls
### 3. Campaign Configuration
**In Customer.io Dashboard:**
- [ ] Production campaigns created (not draft)
- [ ] Sender email verified and authenticated
- [ ] SPF/DKIM/DMARC configured for sending domain
- [ ] Unsubscribe links included in all emails
- [ ] Physical address included (CAN-SPAM)
- [ ] Test sends completed and reviewed
### 4. Deliverability
**Checklist:**
- [ ] Sender domain authenticated
- [ ] Dedicated IP warmed up (if applicable)
- [ ] Suppression list imported
- [ ] Bounce handling configured
- [ ] Complaint handling configured
- [ ] Reply-to address monitored
### 5. Monitoring & Alerting
```typescript
// lib/monitoring.ts
import { metrics } from './metrics';
// Key metrics to monitor
const customerIOMetrics = {
// API metrics
'customerio.api.latency': 'histogram',
'customerio.api.errors': 'counter',
'customerio.api.rate_limited': 'counter',
// Delivery metrics
'customerio.email.sent': 'counter',
'customerio.email.delivered': 'counter',
'customerio.email.bounced': 'counter',
'customerio.email.complained': 'counter',
// Business metrics
'customerio.users.identified': 'counter',
'customerio.events.tracked': 'counter'
};
// Recommended alerts
const alertThresholds = {
'api_error_rate': { threshold: 0.01, window: '5m' },
'bounce_rate': { threshold: 0.05, window: '1h' },
'complaint_rate': { threshold: 0.001, window: '1h' },
'delivery_latency_p99': { threshold: 5000, window: '5m' }
};
```
**Checklist:**
- [ ] API error rate alerting configured
- [ ] Delivery rate monitoring enabled
- [ ] Bounce rate alerting (threshold: 5%)
- [ ] Complaint rate alerting (threshold: 0.1%)
- [ ] Dashboard for key metrics created
### 6. Testing & Validation
```bash
#!/bin/bash
# production-smoke-test.sh
echo "Running production smoke tests..."
# Test 1: API connectivity
curl -s -o /dev/null -w "%{http_code}" \
-X POST "https://track.customer.io/api/v1/customers/smoke-test-$(date +%s)" \
-u "$CUSTOMERIO_SITE_ID:$CUSTOMERIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"smoketest@example.com","_test":true}' | grep -q "200" && \
echo "API: OK" || echo "API: FAILED"
# Test 2: Event tracking
curl -s -o /dev/null -w "%{http_code}" \
-X POST "https://track.customer.io/api/v1/customers/smoke-test/events" \
-u "$CUSTOMERIO_SITE_ID:$CUSTOMERIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"smoke_test","data":{"timestamp":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"}}' | grep -q "200" && \
echo "Events: OK" || echo "Events: FAILED"
echo "Smoke tests complete"
```
**Checklist:**
- [ ] End-to-end test in staging passed
- [ ] Production smoke test passed
- [ ] Load test completed (if high volume)
- [ ] Failover test completed
- [ ] Manual campaign test send reviewed
### 7. Documentation & Runbooks
**Checklist:**
- [ ] Integration documentation updated
- [ ] Event catalog documented
- [ ] Attribute schema documented
- [ ] Runbook for common issues created
- [ ] Escalation path defined
- [ ] On-call rotation aware of integration
### 8. Rollback Plan
```typescript
// Rollback procedure documented
const rollbackPlan = {
trigger: 'Error rate > 5% or delivery rate < 90%',
steps: [
'1. Disable new user identify calls',
'2. Pause triggered campaigns',
'3. Switch to backup messaging provider (if available)',
'4. Notify stakeholders',
'5. Investigate root cause',
'6. Fix and redeploy',
'7. Resume campaigns with reduced volume',
'8. Monitor closely for 24 hours'
],
contacts: {
engineering: 'engineering@company.com',
customerio_support: 'support@customer.io',
escalation: 'oncall@company.com'
}
};
```
**Checklist:**
- [ ] Rollback procedure documented
- [ ] Feature flags for quick disable
- [ ] Backup messaging path available
- [ ] Stakeholder notification plan ready
## Production Checklist Summary
| Category | Status | Notes |
|----------|--------|-------|
| Credentials | [ ] | Prod keys in secrets manager |
| Integration | [ ] | Code reviewed and tested |
| Campaigns | [ ] | All campaigns production-ready |
| Deliverability | [ ] | Domain authenticated |
| Monitoring | [ ] | Alerts configured |
| Testing | [ ] | All tests passing |
| Documentation | [ ] | Runbooks complete |
| Rollback | [ ] | Plan documented |
## Go-Live Procedure
1. **T-24h**: Final staging validation
2. **T-12h**: Production smoke tests
3. **T-1h**: Enable integration with feature flag
4. **T-0**: Go live with 10% traffic
5. **T+1h**: Verify metrics, increase to 50%
6. **T+2h**: Full traffic if healthy
7. **T+24h**: Post-launch review
## Resources
- [Customer.io Launch Checklist](https://customer.io/docs/launch-checklist/)
- [Email Deliverability Guide](https://customer.io/docs/deliverability/)
## Next Steps
After production launch, proceed to `customerio-upgrade-migration` for SDK maintenance.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「customerio-prod-checklist」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次