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.
- in the OpenShift Container Platform web console, go to Search in the navigation on the left.
- Search for
PosMonitor
in Resources. - Click Create PodMonitor.
-
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
- Click Create. The Event Streams Operators dashboard will display metrics after a few minutes.