administration

Configure OpenTelemetry exporters to monitor Claude Code usage and costs.

5|1|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/reggiechan74/claude-plugins --skill administration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: administration
Source: https://github.com/reggiechan74/claude-plugins/tree/main/plugins/claude-code-metaskill/skills/administration
Command: npx skills add https://github.com/reggiechan74/claude-plugins --skill administration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Organizations need to track AI tool usage, monitor costs, and measure the return on investment (ROI) to ensure efficient and compliant operations. This Skill provides comprehensive guidance on Claude Code administration, giving you full visibility and control.

Core Features & Use Cases

  • OpenTelemetry Integration: Export metrics (sessions, LOC, costs, tokens) and events (prompts, tool results) for comprehensive monitoring.
  • Cost Monitoring: Track session costs by model and user, set budget alerts, and optimize usage patterns to control expenses.
  • ROI Measurement: Access templates and methods for calculating productivity, quality, and adoption metrics to demonstrate value.
  • Use Case: Set up OpenTelemetry to export Claude Code usage metrics to Prometheus and visualize session costs over time in Grafana, allowing you to identify high-usage areas and optimize model selection.

Quick Start

Explain how to enable OpenTelemetry for Claude Code metrics.

Frequently Asked Questions about administration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor Claude Code usage and costs with OpenTelemetry?

OpenTelemetry integration exports Claude Code metrics—sessions, tokens, costs—and events like prompts and tool results to monitoring backends. Configure an exporter (OTLP, Prometheus, or console), set export intervals, and segment metrics by user, account, session, or model to track adoption and spending patterns across your deployment.

What metrics can I track to measure Claude Code ROI?

Track session costs by model and user, token usage, lines of code generated, tool adoption rates, and prompt frequency. Use these metrics with ROI templates to calculate productivity gains, quality improvements, and organizational adoption rates, enabling data-driven decisions on model selection and budget allocation.

Can I export Claude Code telemetry to Prometheus and Grafana?

Yes. Configure OpenTelemetry to export metrics via the Prometheus exporter, then visualize session costs, token usage, and adoption trends in Grafana dashboards. This setup identifies high-usage areas and helps optimize model selection and spending.

How do I set up budget alerts for Claude Code spending?

Enable OpenTelemetry telemetry, export cost metrics segmented by user and model, and configure alerts in your monitoring system—Prometheus or similar—based on session cost thresholds. This flags overspending before it escalates.

What deployment scenarios does Claude Code administration cover?

This Skill targets telemetry-enabled Claude Code deployments across multiple users, organizations, sessions, and models. It supports any deployment where you need visibility into usage patterns, cost control, compliance tracking, and ROI measurement over time.

Do I need existing monitoring infrastructure to use Claude Code telemetry?

No. OpenTelemetry supports multiple exporters: console output for quick testing, OTLP for existing observability platforms, or Prometheus for self-hosted stacks. Start with console export to validate metrics, then integrate with your preferred backend.