Skip to content

OpenTelemetry Collector

### Overview
HostSpace Kubernetes Engine (HKE) is an enterprise-grade Kubernetes orchestration platform that focuses on automated scaling, monitoring, and high availability. This documentation covers the integration and configuration of the OpenTelemetry Collector in HKE for efficient observability.
### Key Features/Components
- **OpenTelemetry Collector**: Collects, processes, and exports telemetry data
- **HostSpace Kubernetes Engine (HKE)**: Orchestrates containers for scalability and high availability
### Step-by-step Instructions or Configuration Details
1. **Deploy OpenTelemetry Collector**:
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: otel-collector-config
data:
config.yaml: |
receivers:
otlp:
exporters:
logging:
  1. Configure Collector to Export to HostSpace HKE:
    apiVersion: v1
    kind: Service
    metadata:
    name: otel-collector
    spec:
    ports:
    - protocol: TCP
    port: 4317
    targetPort: 4317
    selector:
    app: otel-collector

Best Practices and Recommendations

  • Use Kubernetes resources efficiently to optimize performance
  • Regularly update the OpenTelemetry Collector for the latest features and security patches
  • kubectl get pods - View running pods
  • kubectl describe pod <pod_name> - Describe a specific pod

Common Pitfalls and Solutions