Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

grafana-lens

bởi awsome-o

DevOps & Cloud
169Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Full Grafana access: query, dashboard, alert, trace — 16 agent tools.

Mô tả

Kỹ năng này làm gì

Gives an agent native access to a Grafana instance for querying metrics, logs, and traces, creating and modifying dashboards, managing alert rules, and pushing custom data. Works with any Prometheus, Loki, or Tempo datasource configured in Grafana. Covers security monitoring and distributed trace investigation.

Covers the full observability stack (metrics, logs, and traces) in a single tool chain, so you can go from alert to root cause without leaving the conversation.

Khi nào nên dùng

  • Check how much an AI agent spent on LLM tokens today
  • Find error logs for a failing API request over the last hour
  • Create a dashboard showing LLM latency and cost trends by model
  • Alert when daily cloud costs exceed a set threshold
  • Debug a slow distributed request by searching traces and correlated logs

Quy trình ví dụ

ĐẦU VÀO

User asks: Alert me when my AI agent's daily cost goes over $10

AGENT
  1. 1

    Calls grafana_explore_datasources to discover the Prometheus datasource UID

  2. 2

    Calls grafana_check_alerts with action 'setup' to create the webhook contact point

  3. 3

    Calls grafana_create_alert with expr 'openclaw_lens_daily_cost_usd', threshold 10, condition 'gt'

  4. 4

    Returns the alert rule URL and confirms metricValidation shows current cost data

ĐẦU RA

Alert rule created. Fires when daily cost exceeds $10; notifications route to the agent via webhook.

Yêu cầu

  • Grafana instance URL (grafana.url config)
  • Grafana API key with editor or admin permissions (grafana.apiKey config)

Cài đặt

clawhub install awsome-o/grafana-lens

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết