Issue
Metrics, logs, or traces are not being collected or sent to the OpsRamp portal, even though the Kubernetes 2.0 agent pods are running.
Cause
- Pipelines not Started
- The OpenTelemetry (OTel) pipelines for metrics, logs, or traces did not start properly.
- Configuration Errors
- Missing or incorrect configuration in receivers, processors, exporters, connectors, or extensions may prevent signals from being collected or exported.
- Corrupted or Incomplete Pipeline Files
- The OTel configuration files under
/opt/opsramp/agent/tmp/otel/inframay be missing or incorrectly set up.
- The OTel configuration files under
Solution
- Check Agent Logs
- Review the
agent.logfile to confirm if the metrics, logs, and traces pipelines have started successfully. - Look for sections such as:
- Receivers in the config
- Exporters in the config
- Processors in the config
- Connectors in the config
- Extensions in the config
- Pipelines in the config
- Telemetry in the config
- Review the
- Exec into Agent Pod
- Access any worker or master agent pod:
kubectl exec -it <opsramp-worker-pod-name> -- sh
- Access any worker or master agent pod:
- Inspect Pipeline Files
- Navigate to the pipeline configuration directory:
cd /opt/opsramp/agent/tmp/otel/infra - List the available configuration files:
ls -la
- Navigate to the pipeline configuration directory:
- Verify File Contents
- Use
catto open and review configuration files:cat podlogs-receiver.yaml cat logs-opsrampotlp-exporter.yaml - Ensure each receiver, processor, and exporter has correct settings (for example, exporter endpoints must point to the OpsRamp portal).
- Use
- Restart Agent if Needed
- If pipeline configuration was corrected, restart the agent pods:
cat podlogs-receiver.yaml kubectl rollout restart deployment <opsramp-agent-deployment> -n <namespace>
- If pipeline configuration was corrected, restart the agent pods:
- Validate in Portal
- Check the OpsRamp portal to confirm that metrics, logs, and traces are flowing.