Skip to content

Quick Start Guide: OpenShift OperatorHub

This guide walks you through installing the Kepler Operator using the OpenShift web console and creating your first PowerMonitor instance.

Step 1: Install the Operator

Access OperatorHub

Navigate to OperatorsOperatorHub in the OpenShift web console and search for "kepler":

OperatorHub Kepler Search Kepler operator available in OperatorHub

Start Installation

Click Install to begin the installation process:

Operator Installation Start Starting the Kepler operator installation

Monitor Progress

Watch the installation progress in the console:

Operator Installing Operator installation in progress

Verify Installation

Once the installation completes successfully:

Operator Installed Operator successfully installed and ready for use

Step 2: Create PowerMonitor Instance

Access Operator Details

Navigate to the operator details to see available APIs:

Operator Details Overview Kepler operator details showing PowerMonitor and deprecated Kepler APIs

Open PowerMonitor Tab

Click on the PowerMonitor tab to access the modern API:

PowerMonitor Tab PowerMonitor API tab in operator details

Create PowerMonitor

Click Create PowerMonitor to open the YAML editor:

Create PowerMonitor YAML PowerMonitor YAML configuration in OpenShift editor

Use this basic configuration:

apiVersion: kepler.system.sustainable.computing.io/v1alpha1
kind: PowerMonitor
metadata:
  name: power-monitor
  labels:
    app.kubernetes.io/name: powermonitor
    app.kubernetes.io/instance: powermonitor
    app.kubernetes.io/part-of: kepler-operator
spec:
  kepler:
    config:
      logLevel: info
      metricLevels:
      - node
      - pod
      - vm
      sampleRate: 5s
      staleness: 500ms
      maxTerminated: 500
    deployment:
      security:
        mode: none

Step 3: Verify Deployment

Check PowerMonitor Status

View the PowerMonitor instance details and status:

PowerMonitor Details PowerMonitor instance details and status conditions

Verify DaemonSet

Check that the DaemonSet is running on your nodes:

oc get powermonitor power-monitor -o wide
oc get daemonset -n power-monitor
oc get pods -n power-monitor -o wide

Step 4: Access Metrics

OpenShift Metrics Console

Navigate to ObserveMetrics in the OpenShift console:

OpenShift Metrics Dashboard Overview OpenShift metrics dashboard showing power consumption overview

View Power Metrics

Explore detailed power consumption metrics:

OpenShift Metrics Dashboard Detailed Detailed OpenShift metrics dashboard with power consumption charts and node information

Next Steps

Now that you have Kepler running, explore these guides:

Quick Reference

Common Commands

# Check PowerMonitor status
oc get powermonitor power-monitor

# View operator logs
oc logs -n openshift-operators deployment/kepler-operator-controller-manager

# Check Kepler pod logs
oc logs -n power-monitor -l app.kubernetes.io/name=kepler-exporter

# Test metrics endpoint
oc port-forward -n power-monitor svc/kepler-exporter 9102:9102
curl http://localhost:9102/metrics

Copyright Contributors to the Kepler's project.

The Linux Foundation® (TLF) has registered trademarks and uses trademarks. For a list of TLF trademarks, see Trademark Usage.