Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bytedance avatar

Byted Volcengine Vmp

  • 6 installs
  • 411 repo stars
  • Updated August 4, 2026
  • bytedance/agentkit-samples

byted-volcengine-vmp is a Claude skill that queries Volcengine managed Prometheus (VMP) workspaces and metric data using PromQL.

About

This skill queries and manages Volcengine's managed Prometheus (VMP) workspaces and metric data. It lists workspaces, runs PromQL instant and range queries, and looks up metric names and labels through the Volcengine Python SDK. A developer uses it to read Prometheus metrics and monitoring data from VMP.

  • Queries Volcengine managed Prometheus (VMP) workspaces
  • Runs PromQL instant and range queries
  • Lists metric names and labels

Byted Volcengine Vmp by the numbers

  • 6 all-time installs (skills.sh)
  • Ranked #870 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

byted-volcengine-vmp capabilities & compatibility

Requires Volcengine AK/SK; installs volcengine-python-sdk>=5.0.21.

Capabilities
byted volcengine cloudmonitor
Use cases
data analysis · devops
Runs
Runs locally
Pricing
Bring your own API key
From the docs

What byted-volcengine-vmp says it does

description: 火山引擎托管 Prometheus (VMP) 查询技能,用于查询 VMP 工作区,以及查询 Prometheus 指标数据。
SKILL.md
常用的火山方舟 PromQL 告警查询可参考 `references/README.md` 文件,里面包含 15 个常用的监控告警查询语句!
SKILL.md
npx skills add https://github.com/bytedance/agentkit-samples --skill byted-volcengine-vmp

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs6
repo stars411
Last updatedAugust 4, 2026
Repositorybytedance/agentkit-samples

What it does

Query Volcengine managed Prometheus (VMP) workspaces and metric data with PromQL.

Who is it for?

Reading Volcengine managed Prometheus metrics with PromQL instant and range queries.

When should I use this skill?

Use when querying VMP workspaces or Prometheus metric data via PromQL on Volcengine.

By the numbers

  • 15 common PromQL alert queries in references/README.md
  • requires volcengine-python-sdk>=5.0.21
  • region default cn-beijing

Files

SKILL.mdMarkdownGitHub ↗

火山引擎托管 Prometheus (VMP) 管理 Skill

这个 Skill 用于查询和管理火山引擎的托管 Prometheus (VMP) 工作区,以及查询 Prometheus 指标数据。

何时使用此 Skill

当用户要求:

  • 查询 VMP 工作区列表
  • 查看工作区详细信息
  • 查询 Prometheus 指标数据(PromQL 查询)
  • 查询指标名称和标签

前置要求

需要安装火山引擎 Python SDK 

pip install --upgrade "volcengine-python-sdk>=5.0.21"

认证配置

推荐在 ~/.openclaw/workspace/.env 中配置:

VOLCENGINE_AK=your_access_key
VOLCENGINE_SK=your_secret_key
VOLCENGINE_REGION=cn-beijing

也可以通过环境变量设置:

export VOLCENGINE_AK=your_access_key
export VOLCENGINE_SK=your_secret_key
export VOLCENGINE_REGION=cn-beijing

认证读取优先级如下:

1. 进程环境变量 2. --env-path 指定的 .env 3. 默认 .env~/.openclaw/workspace/.env

支持的主要功能

1. 工作区管理

  • 查询工作区列表

2. Metrics 查询(新增)

  • 即时查询 - 使用 PromQL 查询单个时间点的指标
  • 范围查询 - 使用 PromQL 查询时间范围的指标
  • 查询指标名称 - 查询工作区中的所有指标名称
  • 查询指标标签 - 查询指定指标的所有标签

💡 提示: 常用的火山方舟 PromQL 告警查询可参考 references/README.md 文件,里面包含 15 个常用的监控告警查询语句!

使用示例

查询 VMP 工作区列表

python /root/.openclaw/workspace/skills/byted-volcengine-vmp/scripts/list_workspaces.py

即时查询 Metrics(PromQL)

# 查询当前时间的 CPU 使用率
python /root/.openclaw/workspace/skills/byted-volcengine-vmp/scripts/query_metrics.py \
  --workspace-id <workspace-id> \
  --query "sum(rate(container_cpu_usage_seconds_total[5m]))"

范围查询 Metrics(时间范围)

# 查询最近 1 小时的 CPU 使用率
python /root/.openclaw/workspace/skills/byted-volcengine-vmp/scripts/query_range_metrics.py \
  --workspace-id <workspace-id> \
  --query "sum(rate(container_cpu_usage_seconds_total[5m]))" \
  --start "2026-04-06T20:00:00+08:00" \
  --end "2026-04-06T21:00:00+08:00"

查询指标名称列表

# 查询工作区中的所有指标名称
python /root/.openclaw/workspace/skills/byted-volcengine-vmp/scripts/get_metric_names.py \
  --workspace-id <workspace-id>

# 带匹配条件查询
python /root/.openclaw/workspace/skills/byted-volcengine-vmp/scripts/get_metric_names.py \
  --workspace-id <workspace-id> \
  --match '{job=~"kubelet"}'

查询指标标签列表

# 查询指定指标的所有标签
python /root/.openclaw/workspace/skills/byted-volcengine-vmp/scripts/get_metric_labels.py \
  --workspace-id <workspace-id> \
  --metric-name up

API 说明

工作区管理

ListWorkspaces

查询 VMP 工作区列表

参数说明:

  • 无特殊参数

返回: VMP 工作区列表

Metrics 查询

QueryMetrics(即时查询)

执行 PromQL 即时查询

参数说明:

  • workspaceId: 工作区 ID
  • query: PromQL 查询语句
  • time: 查询时间(可选,默认为当前时间)

返回: PromQL 查询结果

QueryMetricsRange(范围查询)

执行 PromQL 范围查询

参数说明:

  • workspaceId: 工作区 ID
  • query: PromQL 查询语句
  • start: 起始时间
  • end: 结束时间
  • step: 查询步长(可选,自动计算)

返回: PromQL 范围查询结果

GetLabelValues

查询标签值

参数说明:

  • workspaceId: 工作区 ID
  • label: 标签名称(如 __name__ 表示指标名称)
  • match: 匹配条件(可选)

返回: 标签值列表

GetLabels

查询标签名称

参数说明:

  • workspaceId: 工作区 ID
  • match: 匹配条件(可选)

返回: 标签名称列表

常见 Region

默认地域:cn-beijing

地域Region ID
华北 2(北京)cn-beijing
华东 2(上海)cn-shanghai
华南 1(广州)cn-guangzhou
中国香港cn-hongkong
亚太东南(柔佛)ap-southeast-1
亚太东南(雅加达)ap-southeast-3

Related skills

FAQ

What query types are supported?

PromQL instant queries and range queries, plus metric-name and label lookups.

What SDK is required?

The volcengine-python-sdk version 5.0.21 or above.

Cloud & Infrastructuremonitoringinfra

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.