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,266 stars 315 forks Updated today 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
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

intercom-observability

Set up observability for Intercom integrations with metrics, traces, and alerts. Use when implementing monitoring for Intercom API operations, setting up dashboards, or configuring alerting for integration health. Trigger with phrases like "intercom monitoring", "intercom metrics", "intercom observability", "monitor intercom", "intercom alerts", "intercom tracing".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hubspot-observability

Set up observability for HubSpot integrations with metrics, traces, and alerts. Use when implementing monitoring for HubSpot API operations, setting up dashboards, or configuring alerting for CRM integration health. Trigger with phrases like "hubspot monitoring", "hubspot metrics", "hubspot observability", "monitor hubspot", "hubspot alerts", "hubspot dashboard".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apollo-observability

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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

adobe-observability

Set up comprehensive observability for Adobe API integrations with Prometheus metrics, OpenTelemetry traces, structured logging, and alert rules covering Firefly, PDF Services, and Photoshop APIs. Trigger with phrases like "adobe monitoring", "adobe metrics", "adobe observability", "monitor adobe", "adobe alerts", "adobe tracing".

2,266 Updated today
jeremylongshore
AI & Automation Featured

customerio-observability

Set up Customer.io monitoring and observability. Use when implementing metrics, structured logging, alerting, or Grafana dashboards for Customer.io integrations. Trigger: "customer.io monitoring", "customer.io metrics", "customer.io dashboard", "customer.io alerts", "customer.io observability".

2,266 Updated today
jeremylongshore