Prometheus Configuration
Use when configuring Prometheus scraping, metric schemas, relabeling, recording rules, alerting, service discovery, retention, or monitoring HA.
Install
npx skills add sandbaseai/workbuddy-skill --skill prometheus-configurationgit 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-configurationPersonal 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
```Details
- Skill name
prometheus-configuration- Repository
- sandbaseai/workbuddy-skill
- 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
Access Control Security Best Practices
9sandbaseai/workbuddy-skill
Design, review, implement, and verify least-privilege access controls across users, services, tenants, resources, and administrative workflows.
Accessibility Review
9sandbaseai/workbuddy-skill
Use when reviewing a web interface or interaction for semantic, keyboard, focus, screen-reader, ARIA, and contrast accessibility risks.
Acquire Codebase Knowledge
9sandbaseai/workbuddy-skill
Use when the user asks to map, document, or onboard into an existing codebase and needs evidence-backed architecture, structure, conventions, integrations, testing, and concerns documentation.
Release Traceability
9sandbaseai/workbuddy-skill
Use when changing or auditing CI/CD, build artifacts, deployment contracts, runtime release identity, or any build-to-deploy-to-verify path.
Privacy Engineering
9sandbaseai/workbuddy-skill
Use when implementing or auditing privacy controls in products, infrastructure, analytics, or data flows; translate privacy principles into classification, minimization, consent, subject-rights, retention, vendor, and deletion evidence.
Secrets Management
9sandbaseai/workbuddy-skill
Use when designing or reviewing secure secret storage, CI/CD credential injection, rotation, least-privilege access, secret scanning, or audit controls.
Browse the most popular Claude skills, all devops & cloud skills, or write your own with the skills generator.