Home Tutorials Categories Skills About
ZH EN JA KO
πŸ”₯

Prometheus

Monitoring Cloud & DevOps

Install Command

npx clawhub@latest install prometheus

Installation Guide

1
Check Environment

Make sure Node.js 22+ and OpenClaw are installed. Run openclaw --version in your terminal to verify.

2
Run Installation

Run the install command above in your terminal. ClawHub will automatically download and install Prometheus to the ~/.openclaw/skills/ directory.

3
Verify Installation

Run openclaw skills list to check your installed skills and confirm Prometheus appears in the list.

4
Configure (Optional)

Follow the configuration instructions in the description below to add skill settings to ~/.config/openclaw/openclaw.json5.

Manual Installation: Copy the Skill folder to ~/.openclaw/skills/ or the skills/ directory in your project root. Make sure the folder contains a SKILL.md file.
PromQL Generation Metric Queries Alert Rules

Detailed Description

The Prometheus skill lets OpenClaw directly query the Prometheus time-series database, replacing complex PromQL with natural language.

Core Features

  • Natural Language to PromQL: Describe the metrics you want to query and PromQL expressions are automatically generated
  • Metric Browsing: List and search available metric names and labels
  • Instant Queries: Execute instant queries for current values
  • Range Queries: Query metric changes over a specified time range
  • Alert Rules: View and manage alert rules

Configuration

{
  skills: {
    prometheus: {
      url: "http://localhost:9090",
      auth: null  // Or { username: "xxx", password: "xxx" }
    }
  }
}

Use Cases

  • "Which nodes had CPU usage above 80% in the past 5 minutes?"
  • "Show the nginx request rate and error rate"
  • "Generate an alert rule for API latency P99 exceeding 1 second"
  • "Which 5 Pods are using the most memory?"