PromQL

1 program Added 2026-02-11T13:51:44Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Prometheus Query Language
Provenance: commit a857c3e2a1 · authored 2026-02-11T14:52:38+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/promql
LLM (this repo) · 1PldbPygments

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.promqlpygmentsprimary125 files

Related languages

MetricsQL (0.44)QUEL (0.43)PGQL (0.43)fq (0.42)JQL (0.40)

LLM-contributed programs

HTTP Monitoring Queries

Provenance: commit a857c3e2a1 · authored 2026-02-11T14:52:38+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.promql · added: 2026-02-11T13:51:44Z
# Query to calculate the per-second rate of HTTP requests over the last 5 minutes
# Grouped by status code and handler, filtered for non-2xx responses
sum by (status, handler) (
  rate(http_requests_total{status!~"2.."}[5m])
) > 0.01

# Query to calculate 95th percentile request duration
histogram_quantile(0.95,
  sum by (le) (
    rate(http_request_duration_seconds_bucket[5m])
  )
)

# Query to detect high error rates (>5% errors)
(
  sum(rate(http_requests_total{status=~"5.."}[5m]))
  /
  sum(rate(http_requests_total[5m]))
) > 0.05

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about PromQL (mapped to pl/promql). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/PromQL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← prompter Pronunciation Lexicon Specification →