OpenTelemetry Service#
The OpenTelemetry service provides collector diagnostics, configuration analysis, and telemetry inspection with 12 tools for managing observability resources.
Overview#
The OpenTelemetry service in Cloud Native MCP Server enables AI assistants to collect and analyze telemetry data from applications and infrastructure efficiently. It provides tools for metrics collection, trace analysis, and log aggregation.
Key Capabilities#
### π Metrics Collection
Collect and analyze application and infrastructure metrics.
### π Trace Analysis
Distributed tracing with performance insights.
### π Log Aggregation
Unified log collection and analysis.
### π οΈ Configuration
Manage OpenTelemetry collector configuration and status.
Available Tools (12)#
Metrics Management#
opentelemetry_get_metrics: Get metrics from the collectoropentelemetry_query_metrics: Run a PromQL-style query against collector metrics
Trace Management#
opentelemetry_get_traces: Get traces from the collectoropentelemetry_query_traces: Search traces with filters and time range
Log Management#
opentelemetry_get_logs: Get logs from the collectoropentelemetry_query_logs: Search logs with filters and time range
Collector Diagnostics#
opentelemetry_get_health: Get OpenTelemetry collector healthopentelemetry_get_status: Get detailed collector statusopentelemetry_get_collector_summary: Get a compact collector health and config overviewopentelemetry_get_config: Get full collector configurationopentelemetry_get_config_summary: Get a compact config summaryopentelemetry_analyze_pipeline_status: Analyze pipelines for missing components and common misconfigurations
Quick Examples#
Get metrics from the collector#
| |
Analyze one collector’s pipelines#
| |
Get collector configuration summary#
| |
Best Practices#
- Implement proper resource attributes for effective filtering
- Use appropriate sampling strategies for traces
- Configure appropriate metric collection intervals
- Monitor collector health and resource usage
- Set up alerts based on telemetry data patterns
Next Steps#
- Jaeger Service for detailed tracing
- Observability Guides for detailed setup
- Metrics Best Practices for collection strategies