Skip to content

Using Lens Prism#

Lens paid subscription feature

This page contains information about Lens Prism usage, best practices, and prompt examples.

Lens Prism is the built-in AI-powered assistant for Lens Desktop that helps you manage and troubleshoot your Kubernetes clusters using simple, natural language. Instead of writing complex kubectl commands, you can just ask spoken language questions and get live cluster updates.

Lens Prism streamlines troubleshooting, speeds up workflows, and makes Kubernetes more accessible—whether you're a new user learning the ropes or an experienced operator needing fast insights.

With Lens Prism you can:

  • Ask questions about your cluster, such as:

    • Which pods are failing right now?
    • Show logs for the payment service.
    • How much CPU is used per node?
  • Troubleshoot issues without using kubectl commands.

  • Get environment-aware updates based on your actual cluster state.

Lens Prism can run kubectl commands and respond with contextual results, including pods, logs, resource usage, events, and so on.

Once Lens Prism is configured:

  1. Connect to a cluster.
  2. Click the Open Lens Prism icon on the top bar right. An auxiliary tab with the Lens Prism session opens under the cluster view.
  3. Enter a natural language prompt, for example:

      Which pods are failing at the moment?
    

As a result, Lens Prism fetches live cluster data and responds with contextual information such as running pods, logs, resource usage, and more.

Info

A Lens Prism session is cluster-specific. Each cluster has it’s own Lens Prism session. When you switch between cluster views, the active Prism session updates accordingly.

See the illustration of Lens Prism below:

An GIF illustrating Lens Prism

Prompt examples#

When using Lens Prism, follow these principles:

  • Ask concise, focused questions. For example: What's wrong with my pod-name?
  • Use specific resource names or namespaces when possible

In the table below, there are examples for some prompts:

Use Case Example
Pod status What pods are failing?
Logs Show logs for backend service
Metrics What is the CPU usage on node x?
Config help Explain what this deployment does
YAML review Summarize this config file
Debugging Why is my ingress not routing?