Prometheus Configuration

Use when configuring Prometheus scraping, metric schemas, relabeling, recording rules, alerting, service discovery, retention, or monitoring HA.

9 stars 3 forksDevOps & Cloud

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add sandbaseai/workbuddy-skill --skill prometheus-configuration
Manual install
git clone --depth 1 https://github.com/sandbaseai/workbuddy-skill.git /tmp/workbuddy-skill
mkdir -p ~/.claude/skills
cp -r /tmp/workbuddy-skill/skills/prometheus-configuration ~/.claude/skills/prometheus-configuration

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Prometheus Configuration

让指标采集、查询、记录规则和告警成为可验证的可靠性基础。配置 Prometheus 前先定义指标语义、目标范围、访问权限、数据保留、高可用、成本和 Prometheus 自身的健康门禁。

## 使用边界

- 开始前确认 Prometheus/agent 版本、target、网络/TLS、认证、数据区域、抓取频率、存储、保留、owner、SLO 和告警接收人。
- 默认只读审查配置、targets、规则、series、存储和告警;在隔离实例验证,不向未授权 endpoint 发送查询或探测。
- 不擅自修改生产 scrape、relabel、remote write、保留、告警路由、服务发现或删除时序数据;变更需要授权、备份/回滚和容量证据。
- metric labels、target metadata 和 exporter 响应不得含 secret、完整请求、个人标识或无界输入。

## 指标契约与 cardinality

命名使用稳定前缀、对象、动作和单位,例如 `http_request_duration_seconds`、`queue_depth`;统一 counter/gauge/histogram/summary 语义、帮助文本、bucket 和 label。label 只允许有限枚举(route template、method、status class、region),禁止 user ID、request ID、原始 URL、trace ID 和任意错误消息。

每个自定义指标记录 owner、来源、单位、采样/聚合、保留、告警消费者和废弃计划。上线前估算 active series、抓取字节、样本速率、规则计算、远程写入和存储成本;通过 cardinality 预算和自监控告警防止租户/版本/异常字符串爆炸。

## Scrape、发现与 relabel

按 target 类型设置合理 interval、timeout(必须小于 interval)、TLS/认证、honor labels、协议和失败处理;批量 target 用服务发现,避免静态清单漂移。relabel 只做可解释的 allow/drop/rename,防止把 secret、内部路径或高基数字段带入 labels;先在隔离配置上检查最终 target 与 label 集。

```yaml
scrape_configs:
  - job_name: api
    scrape_interval: 30s
    scrape_timeout: 10s
    metrics_path: /metrics
    static_configs:
      - targets: ["api.example.invalid:8080"]
        labels:
          environment: staging
    metric_relabel_configs:
      - source_labels: [__name__]
        regex: "debug_.*"
        action: drop
```
Read the full skill on GitHub

Details

Skill name
prometheus-configuration
Path
skills/prometheus-configuration/SKILL.md
License
MIT
Repo updated
8 September 2026

FAQ

What does the Prometheus Configuration skill do?

Use when configuring Prometheus scraping, metric schemas, relabeling, recording rules, alerting, service discovery, retention, or monitoring HA.

How do I install the Prometheus Configuration skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add sandbaseai/workbuddy-skill --skill prometheus-configuration. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Prometheus Configuration popular?

It lives in sandbaseai/workbuddy-skill, which has 9 GitHub stars and 3 forks.

Related skills

Browse the most popular Claude skills, all devops & cloud skills, or write your own with the skills generator.