| name | apollo-observability |
| description | Set up Apollo.io monitoring and observability.
Use when implementing logging, metrics, tracing, and alerting
for Apollo integrations.
Trigger with phrases like "apollo monitoring", "apollo metrics",
"apollo observability", "apollo logging", "apollo alerts".
|
| allowed-tools | Read, Write, Edit, Bash(kubectl:*), Bash(curl:*) |
| version | 1.13.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","apollo","monitoring","observability","logging"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Apollo Observability
Overview
Comprehensive observability for Apollo.io integrations: Prometheus metrics (request count, latency, rate limits, credits), structured logging with PII redaction, OpenTelemetry tracing, and alerting rules. Tracks the metrics that matter: credit burn rate, enrichment success rate, and API health.
Prerequisites
- Valid Apollo API key
- Node.js 18+
Instructions
Step 1: Prometheus Metrics
import { Counter, Histogram, Gauge, Registry } from 'prom-client';
export const registry = new Registry();
export const requestsTotal = new Counter({
name: 'apollo_requests_total',
help: 'Total Apollo API requests by endpoint and status',
labelNames: ['endpoint', 'method', 'status'] as const,
registers: [registry],
});
export const requestDuration = new Histogram({
name: 'apollo_request_duration_seconds',
help: 'Apollo API request duration',
labelNames: ['endpoint'] as const,
buckets: [0.1, 0.25, , , , , ],
: [registry],
});
rateLimitRemaining = ({
: ,
: ,
: [] ,
: [registry],
});
creditsUsed = ({
: ,
: ,
: [] ,
: [registry],
});
enrichmentSuccessRate = ({
: ,
: ,
: [registry],
});