Collector for Kubernetesの一般的なトラブルシューティング

Collector for Kubernetes に固有のトラブルシューティングについて説明します。

KubernetesにおけるSplunk Opentelemetry Collector のデバッグロギング

Collector のログレベルを info から debug に変更すると、トラブルシューティングに役立ちます。

そのためには、以下の設定を適用します:

service:
  telemetry:
    logs:
      level: "debug"

ログをエクスポートする

Collector のログはデフォルトではエクスポートされません。すでにログを Splunk Platform または Splunk Observability にエクスポートしている場合は、Collector のログもエクスポートするとよいでしょう。

たとえば、デバッグログを出力し、Splunk Platform または Splunk Observability にエクスポートするように Collector を設定できます:

agent:
  config:
    service:
      telemetry:
        logs:
          # Enable debug logging from the collector.
          level: debug
# Optional for exporting logs.
logsCollection:
  containers:
    # Enable the logs from the collector/agent to be collected at the container level.
    excludeAgentLogs: false

ログを見るには、次を使用:

kubectl logs {splunk-otel-collector-agent-pod}