惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Y
Y Combinator Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
IT之家
IT之家
量子位
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
罗磊的独立博客
S
SegmentFault 最新的问题
博客园_首页
N
Netflix TechBlog - Medium
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
A
About on SuperTechFans
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
腾讯CDC
MyScale Blog
MyScale Blog

Show HN

The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal). Release v0.1.2.1 · kouhxp/yapsnap GitHub - noopolis/moltnet: Self-hostable chat network for AI agents. Pre-built bridges for Claude Code, Codex, and the Claws. Rooms, DMs, history. No Slack bots, no Matrix, no glue code. GitHub - tamerh/enju: Coordinating Humans, AI Agents, and Compute as Peers on a Shared Workflow Graph
pedantic.run · PromQL query analyzer · pedantic.run
neinasaservi · 2026-06-20 · via Show HN
PromQL analysis · HTTP API

Lint your PromQL over a single HTTP call.

pedantic.run parses a query and returns the patterns that get expensive at runtime — negative-regex matchers, bare selectors, high-cardinality groupings. Send a query, get back JSON findings. No auth, no state.

Send a query

Post the query as JSON to /api/analyze:

The query is read from the first of these that is present:

?q= param

GET or POST query string

GET /api/analyze?q=rate(...)

query field

JSON or form body

{"query": "rate(...)"}

raw body

text/plain request body

POST body: rate(...)

What you get back

A JSON object with the original query, a summary tally of verdicts, and the flat list of findings.

verdict — how worried to be (worst first)

invalid

Doesn't type-check — won't run.

slow

Expensive whatever your data.

runtime_dependent

Cost depends on cardinality.

moderate

Noticeable but usually fine.

fast

No concerns found.

status codes

200

Analyzed — findings returned.

400

Empty query — nothing to analyze.

422

Could not parse or analyze the query.

Finding codes

Each finding carries a category and one or more codes. Here's what every code means.

matchers

BARE_SELECTOR
Selector with no label filters — scans every series for the metric.

REGEX_MATCHER
Uses =~ / !~ instead of equality; harder to index.

NEGATIVE_REGEX
!~ must scan all series just to exclude some.

CATCHALL_MATCHER
A .* / .+ value matches everything — no real filtering.

UNANCHORED_REGEX
Regex not anchored at both ends; can't shortcut the lookup.

range_vectors

LONG_RANGE_VECTOR
Window long enough to load a lot of samples (> 59m / > 2h).

SHORT_RANGE_VECTOR
Sub-minute window that may under-sample the metric.

NO_AGGREGATION_HIGH_CARD
A high-cardinality selector returned raw, with no aggregation.

SUBQUERY
A subquery re-evaluates the inner query at every step.

NESTED_SUBQUERY
A subquery inside a subquery multiplies that work.

aggregation

HIGH_CARD_GROUPING
Grouping by an unbounded label (request_id, trace_id, pod, …).

SORT_AGGREGATION
topk / bottomk / quantile must sort the full result set.

structure & type_error

VECTOR_JOIN
A binary op with empty on() matching.

REDUNDANT_SUBEXPR
The same sub-expression is computed more than once.

ARITY_MISMATCH
A function called with the wrong number of arguments.

ARG_TYPE_MISMATCH
An argument has the wrong type (e.g. instant where a range is required).