独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
G

GillMacedo/seriesdiff

Prometheus metrics diff for pull requests

装之前:没有可直接复制的命令 · 许可证 MIT · 链接可访问

第一步:这条暂时没有可执行的下一步,可先看原仓库 https://github.com/GillMacedo/seriesdiff

在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
官方说明Prometheus metrics diff for pull requests. A Claude Code skill and Go CLI that compares /metrics scrapes from the base branch and your change, and lists removed or renamed metrics, type changes, removed labels, bucket changes, ID-like label values and series growth, with the alert rules and dashboar
★ 数取值
0 ★ · GillMacedo/seriesdiff · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-11-03 · 最近见到 2026-11-14 · 共见到 12 次 · 被 1 个来源列出
评分构成
综合分 103 · 1 个来源 · repo
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 GillMacedo/seriesdiff;我们收录于 2026-11-03;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

# seriesdiff: Prometheus metrics diff for pull requests

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

A Claude Code skill and Go CLI for backend developers and SREs who change instrumented code and want to know, before merging, whether the change breaks Prometheus alerts and Grafana dashboards or blows up metric cardinality. It compares two /metrics scrapes, one from the base branch and one from your change, and lists removed or renamed metrics, type changes, removed labels, changed histogram buckets, label values that look like IDs, lost series and series growth. With --refs it names the alert rules and dashboard lines that use each changed metric.
Renaming a metric, dropping a label or switching a route label from the template to the raw path usually pass code review and CI, because tests rarely check metric names and labels. The first sign is an alert that silently stops firing or a Prometheus server running out of memory. seriesdiff reads the scrape files, so it works with any exporter or client library, and it refuses an empty, garbled or cut-off scrape instead of calling it clean.
## What you can ask Claude
"Does my branch rename or remove any Prometheus metrics our alerts use?"
"Will this change add high-cardinality labels to our metrics?"
"Compare /metrics from main and from my branch and tell me what breaks."
"We upgraded nodeexporter. Which of our dashboards will lose data?"
## Install
As a Claude Code plugin:
claude plugin marketplace add GillMacedo/seriesdiff
claude plugin install seriesdiff@seriesdiff-marketplace
Or as a CLI with Go 1.22 or newer. It has no dependencies:
go run github.com/GillMacedo/seriesdiff/plugin/scripts@latest compare base.prom head.prom
## Example
examples/orders holds three versions of a small made-up HTTP service instrumented with the real clientgolang library. after makes typical pull request mistakes: it labels requests with the raw path instead of the route template, changes the latency buckets, drops the reason label from payment errors, renames a gauge, and turns a counter into a gauge. scripts/scrape-examples.sh builds each version, sends the same requests, and saves /metrics. examples/monitoring holds alert rules and a dashboard written against the before metrics. From a clone of this repo:
$ go run ./plugin/scripts compare --refs examples/monitoring examples/scrapes/orders-before.prom examples/scrapes/orders-after.prom
1 removed metric, 1 type change, 1 removed label, 1 bucket change, 2 labels with ID-like values, 2 metrics that lost series, 2 new metrics
Series: 114 -> 114. Metrics: 45 -> 46.
Removed metrics (queries, alerts and dashboards using them get no data):
orderqueuedepth gauge, 1 series
probably renamed to ordersqueuedepth
used in examples/monitoring/alerts.yml:11, examples/monitoring/dashboards/orders.json:22
Type changed (rate() and histogramquantile() depend on the type):
cacheentries counter -> gauge
used in examples/monitoring/dashboards/orders.json:17
Removed labels (by() and label matchers using them stop matching):
paymenterrorstotal label reason, which had 2 values
used in examples/monitoring/alerts.yml:14, examples/monitoring/dashboards/orders.json:12
Histogram buckets changed (quantiles across the change and le= matchers are affected):
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/gillmacedo-seriesdiff/)
来源
github · https://github.com/GillMacedo/seriesdiff
按领域浏览
开源项目
收录于
今天

同类推荐

全部 1,671 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引