Attention: This version of Event Streams has reached End of Support. For more information about supported versions, see the support matrix.

Metrics do not display in operator Grafana dashboard

Symptoms

One of the dashboards in the Grafana service, the Event Streams Operators dashboard, does not display metrics.

Causes

The Event Streams metrics are not provided to Prometheus.

Resolving the problem

Add the following PodMonitor to your namespace where Event Streams is installed.

  1. in the OpenShift Container Platform web console, go to Search in the navigation on the left.
  2. Search for PosMonitor in Resources.
  3. Click Create PodMonitor.
  4. Add the following snippet, and replace <namespace> with the namespace where your Event Streams is installed:

    apiVersion: monitoring.coreos.com/v1
    kind: PodMonitor
    metadata:
      name: operator-metrics
      namespace: <namespace>
    spec:
      podMetricsEndpoints:
        - port: metrics
          scheme: http
      selector:
        matchLabels:
          app.kubernetes.io/name: eventstreams-operator
          eventstreams.ibm.com/kind: cluster-operator
    
  5. Click Create. The Event Streams Operators dashboard will display metrics after a few minutes.