Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

promprom 搜索

Agent Skill

prom 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

27,930

周安装

1,119

GitHub Stars

2

下载量

9,042
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prom(prom 搜索)
来源仓库:https://github.com/ivangdavila/prom
安装命令:
openclaw skills install prom
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install prom

简介

prom 用于记录任务执行中的错误和经验,帮助 Agent 持续优化行为。

  • 适用于错误追踪和知识沉淀场景,支持经验积累和问题修正。
  • 可通过 openclaw skills install prom 安装使用。
  • 安装前建议确认权限范围和维护状态,注意可能涉及日志写入和读取。
  • 建议查阅原始文档了解记录格式和反馈机制。

SKILL.md

name
Prometheus
description
Prometheus monitoring patterns, cardinality management, alerting best practices, and PromQL traps.
metadata
category
infrastructure
skills
["prometheus", "monitoring", "alerting", "metrics", "observability"]

Cardinality Explosions

  • Every unique label combination creates a new time series — user_id as label kills Prometheus
  • Avoid high-cardinality labels: user IDs, email addresses, request IDs, timestamps, UUIDs
  • Check cardinality: prometheus_tsdb_head_series metric — above 1M series needs attention
  • Use histograms for latency, not per-request labels — buckets are fixed cardinality
  • Relabeling can drop dangerous labels before ingestion: labeldrop in scrape config

Histogram vs Summary

  • Histograms: use for SLOs, aggregatable across instances, buckets defined upfront
  • Summaries: use when you need exact percentiles, cannot aggregate across instances
  • Histogram bucket boundaries must be defined before data arrives — wrong buckets = wrong percentiles
  • Default buckets (.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10) assume HTTP latency — adjust for your use case

Rate and Increase

  • rate() requires range selector at least 4x scrape interval — rate(metric[1m]) with 30s scrape misses data
  • rate() is per-second, increase() is total over range — don't confuse them
  • Counter resets on restart — rate() handles this, raw delta doesn't
  • irate() uses only last two samples — too spiky for alerting, use rate() for alerts

Alerting Mistakes

  • Alert on symptoms, not causes — "high latency" not "high CPU"
  • for clause prevents flapping: for: 5m means condition must hold 5 minutes before firing
  • Missing for clause = fires immediately on first match = noisy
  • Alerts need runbook_url label — on-call needs to know what to do, not just that something's wrong
  • Test alerts with promtool check rules — syntax errors discovered at 3am are bad

PromQL Traps

  • and is intersection by labels, not boolean AND — results must have matching label sets
  • or fills in missing series, doesn't do boolean OR on values
  • {} without metric name is expensive — scans all metrics
  • offset goes back in time: metric offset 1h is value from 1 hour ago
  • Comparison operators filter series: http_requests > 100 drops series below 100, doesn't return boolean

Scrape Configuration

  • honor_labels: true trusts source labels — use only when source is authoritative (e.g., Pushgateway)
  • scrape_timeout must be less than scrape_interval — otherwise overlapping scrapes
  • Static configs don't reload without restart — use file_sd or service discovery for dynamic targets
  • TLS verification disabled (insecure_skip_verify) should be temporary, never permanent

Pushgateway Pitfalls

  • Pushgateway is for batch jobs, not services — services should expose /metrics
  • Metrics persist until deleted — stale metrics from dead jobs confuse dashboards
  • Add job and instance labels to distinguish sources — default grouping hides failures
  • Delete metrics when job completes: curl -X DELETE http://pushgateway/metrics/job/myjob

Recording Rules

  • Pre-compute expensive queries: record: job:request_duration_seconds:rate5m
  • Naming convention: level:metric:operations — helps identify what rules produce
  • Recording rules update every evaluation interval — not instant, plan for slight delay
  • Reduce cardinality with recording rules: aggregate away labels you don't need for alerting

Federation and Remote Write

  • Federation for pulling from other Prometheus — use sparingly, adds latency
  • Remote write for long-term storage — Prometheus local storage is not durable
  • Remote write can buffer during outages — but buffer is finite, data loss on extended outages
  • Prometheus is not highly available by default — run two instances scraping same targets

Common Operational Issues

  • TSDB corruption on unclean shutdown — use --storage.tsdb.wal-compression and monitor disk space
  • Memory grows with series count — each series costs ~3KB RAM
  • Compaction pauses during high load — leave 40% disk headroom
  • Scrape targets stuck "Unknown" — check network, firewall, target actually exposing /metrics

Label Best Practices

  • Use labels for dimensions you'll filter/aggregate by — environment, service, instance
  • Keep label values low-cardinality — tens or hundreds, not thousands
  • Consistent naming: snake_case, prefix with domain: http_requests_total, node_cpu_seconds_total
  • le label is reserved for histogram buckets — don't use for other purposes

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.73%
按下载量换算6,576

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills