cohere-observability

Featured

Set up comprehensive observability for Cohere API v2 with metrics, traces, and alerts. Use when implementing monitoring for Chat/Embed/Rerank operations, setting up dashboards, or configuring alerts for Cohere integrations. Trigger with phrases like "cohere monitoring", "cohere metrics", "cohere observability", "monitor cohere", "cohere alerts", "cohere tracing".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Cohere Observability ## Overview Set up production observability for Cohere API v2 with Prometheus metrics, OpenTelemetry tracing, and AlertManager rules. Tracks per-endpoint latency, token usage, error rates, and costs. ## Prerequisites - Prometheus or compatible metrics backend - OpenTelemetry SDK installed - `cohere-ai` SDK v7+ ## Instructions ### Step 1: Metrics Collection ```typescript import { Registry, Counter, Histogram, Gauge } from 'prom-client'; const registry = new Registry(); // Per-endpoint request counter const requestCounter = new Counter({ name: 'cohere_requests_total', help: 'Total Cohere API requests', labelNames: ['endpoint', 'model', 'status'], registers: [registry], }); // Latency histogram const requestDuration = new Histogram({ name: 'cohere_request_duration_seconds', help: 'Cohere request duration', labelNames: ['endpoint', 'model'], buckets: [0.1, 0.25, 0.5, 1, 2.5, 5, 10, 30], registers: [registry], }); // Token usage tracking const tokenCounter = new Counter({ name: 'cohere_tokens_total', help: 'Total tokens consumed', labelNames: ['endpoint', 'model', 'direction'], // direction: input|output registers: [registry], }); // Error counter by type const errorCounter = new Counter({ name: 'cohere_errors_total', help: 'Cohere errors by status code', labelNames: ['endpoint', 'status_code'], registers: [registry], }); // Rate limit headroom const rateLimitGauge = new Gauge({ name: 'cohere_rate_limit_remainin...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category