Issue

Kubernetes events are not visible in the OpsRamp portal, even though the Kubernetes 2.0 agent pods are running.

Cause

  1. Events not Enabled
    • During Kubernetes 2.0 installation, the kube events option was not enabled.
    • The integration manifest does not have kubeEvents.enabled set to true.
  2. OpenTelemetry Pipeline not Running
    • The Kubernetes 2.0 agent uses the OpenTelemetry pipeline to fetch cluster events. If the pipeline fails to start, events will not be collected.
  3. ConfigMap Restrictions
    • The opsramp-k8s-events-user-config ConfigMap may be excluding specific event types or namespaces.
    • Events collection can be disabled or limited by configuration.

Solution

  1. Enable Events in Manifest
    • Edit the manifest and set kubeEvents.enabled to true.
      kubeEvents:
        enabled: true
  2. Verify Pipeline Status
    • Check the agent logs to confirm the OpenTelemetry pipeline for events has started successfully.
  3. Review ConfigMap for Events
    • Edit the ConfigMap if you need to include or exclude specific events:
      kubectl edit configmap opsramp-k8s-events-user-config -n <namespace>
    • Add additional event types or re-enable disabled ones as needed.
  4. Cross-check in Portal
    • Navigate to the Logs section in the OpsRamp portal.
    • Use the Filter > Type = Events option to view Kubernetes events.