Skip to content

feat(landing): Prometheus metrics guide - #1567

Merged
JeremyFunk merged 3 commits into
mainfrom
feat/guide-prometheus-metrics
Oct 20, 2026
Merged

JeremyFunk merged 3 commits into
mainfrom
feat/guide-prometheus-metrics

fix(landing): don't call every Prometheus client library official

d46eabc
Select commit
Loading
Failed to load commit list.
Maple Review Bot / Maple / review succeeded Oct 20, 2026 in 1m 18s

Confidence 10/10 · No issues found

🟢 Confidence 10/10 · safe to merge
Static Astro landing page; the highlighter escapes before set:html, the bucket math and links check out, and nothing else in the diff mutates state.
no findings · tests not needed · risk low

Adds a static /guides/prometheus-metrics landing guide, a small guide-specific syntax highlighter, and its entries in the guides index and llms.txt. Contained and safe to merge.

  • guide-highlight.ts tokenizes exposition, PromQL, YAML and six client languages for set:html code blocks
  • Guide page composes bucket, type and client tables from page-local constants
  • Guides index and llms.txt list the new guide

Production impact

Production traffic of the changed files (last 7 days)
File Calls/day Busiest operations
apps/landing/src/pages/guides/prometheus-metrics.astro 107k maple 105k/day, 91.1% err
POST 947/day, 3.6% err
GET 904/day, 2.6% err
What was checked
  • highlight escapes &, <, > before any set:html, so snippet markup and the <code> bodies in mistakes cannot inject HTML
  • Bucket counts, totalRequests and the p95 marker agree: 9,927 of 10,449 falls between the 100 ms and 250 ms buckets, matching the 177 ms caption
  • Component imports (LanguageTabs, TableOfContents, Breadcrumb), the .lt wrapper class, CONTRIBUTORS.jeremyfunk, /docs/integrations/prometheus, /docs/explore/metrics, the screenshots and t…

d46eabc · Updated on every push. Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.