PromQL (Prometheus 3.15)
This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4], [5], [6].
Snapshot PromQL (Prometheus 3.15) — released October 2026 · lifecycle current
Family PromQL — shelf: Data and Science
The language’s primary object is a dataset or a numeric array, not a program loop. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.
Trajectory Prometheus 0.x (November 2012 — the query language of the first Prometheus releases) · Prometheus 2.0 (January 2017 — the new TSDB arrives; the language grows the selector and modifier surface over the 2.x line) · Prometheus 3.0 (November 2024 — the first major in seven years: left-open ranges, newline regex semantics, UTF-8 names, and le-label normalization, each published in the migration guide) · 3.15.1 (October 2026 — assessed release; duration expressions ship by default and first_over_time is promoted to stable)
Tags
Use — Data and statistics, Query
Paradigm — Declarative
Lifecycle — Current
Memory — Runtime-managed
Typing — Dynamic
Resources
The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to PromQL (Prometheus 3.15); an unmarked link is the current reference for the language.
Landing page
Specification and reference
API documentation
Release notes
1 Assessment
This page assesses PromQL (Prometheus 3.15) in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.
Core coupling 70.9/100 · Ecosystem coupling 47.7/100 · Engineering readiness 65.5/100
1.1 Core coupling
1.1.1 Type
- ✅ A typed value lattice: instants, vectors, matrices, scalars, and (from 3.0) strings are distinct expression kinds with published per-operator type rules
- ❌ No static check against the data: a query is typed against its own expression kinds, not against what the cluster stores — a selector that matches no series is legal, and the releases added warnings for exactly that pattern (T1)
- ❌ No sum types: a sample is a float64 (integer histogram samples arrive in the 3.x line behind documented type-coercion fixes), and histogram, string, scalar, and vector values coexist with conversions defined per operator, not a type the expression names (T4)
- ❌ No parameterization: an expression is not a function, recording rules publish a series by name in a flat YAML, and reusable logic is copied rule file by rule file (T5)
- ❌ One flat name space: metric names are global to the TSDB,
__name__carries the name as a label, and the 3.0 quoting syntax for UTF-8 names exists because dots and colons in names were once illegal (T6) - ❌ Absence is not a value: a selector matching no series yields an empty vector, a lookback with no sample yields no element, and the 3.0 migration guide shows a 1m subquery turning into No Data on aligned systems — absence has no type to name (T10)
- ❌ No module boundary: a
recordrule publishes a series by name, and nothing in the language imports definitions from a file, a server, or a namespace (T11) - ❌ No effects, because the language writes nothing: a query reads the TSDB, recording-rule files derive series the engine stores, and neither the expression nor the rule file states its effect (T12)
- ❌ The ingest boundary renames labels: the 3.14 notes add warnings and a counter for OTLP attribute names that collide into one Prometheus label after sanitization — series identity changes crossing the boundary, and no check in the language validates the result (T14)
1.1.2 Construction
- ✅ The query states the result:
count by (job) (rate(http_requests_total[5m]))declares the vector to produce, and the engine builds the plan - ❌ Series mutate with arrivals: samples append to the head, staleness markers rewrite a series’ state, and the out-of-order and reset-detection features of the 3.x line exist because the store is mutable in place (C2)
- ❌ No constructor validates label identity:
sum by (l), label joins, andlabel_replacecompose new label sets by regex, and the 3.0 migration guide shows the le/quantile normalization changing a series’ identity when the engine, not the expression, decides (C4) - ❌ A vector’s order is not pinned: vectors are label-set collections with no declared order, and the
sort()andsort_le()functions exist because the default order is unspecified (C5) - ⚠️ Remote write and federation are config, not language: a query writes nothing to the TSDB, the deployment moves series by YAML beside it, and the language does not scope that
1.1.3 Memory
- ✅ Allocation is the server’s: head blocks, mmap’d block files, and query results live in the Prometheus process, and the query text allocates nothing
- ⚠️ High-cardinality selectors materialize in RAM: aggregations over unbounded label sets are operations whose cost the operator plans — the 3.15-line notes fix query panics during series eviction after WAL replay, and head-series gauges track native-histogram buckets
1.1.4 Error
- ❌ No structured path in the language: a query aborting on the sample-count and queue limits, a many-to-many match error, and a lookback that found no sample surface as API-level errors the expression cannot route around (Er1)
- ❌ NaN swallows silently: an expression fed by a NaN sample propagates NaN, and the 3.14 notes fix two silent behaviors in one release —
mad_over_timereturning 0 where NaN is right, and case-insensitive regex matchers silently dropping matching values (Er3) - ❌ No composable result type: scalar, vector, matrix, and string values share expression slots with per-operator promotion rules, strings arrived in 3.0 with restricted usability, and success and absence compose by spec rules, not by a type (Er4)
- ✅ Warnings ride the response: advisory warnings for unanchored regex selectors and saturation signals arrive in the API result, so a caller reads a defined advisory with the data
1.1.5 Concurrency
- ✅ Concurrency is the server’s: scrape pools, query-queue limits, and remote-write shards run in the engine, and the language names no threads, channels, or tasks
- ⚠️ A range query steps the expression: each evaluation timestamp is an independent instant evaluation, and the 3.15-line notes fix a subquery
@-modifier case — the scheduling the user faces is in the frontend, not the text
1.1.6 Platform
- ❌ A poor fit outside metrics: series, labels, sample windows, and counter-reset semantics assume a monitoring store, application logic lives in the dashboard and alert-rule layer, and the language is the query surface of the TSDB class — Prometheus, Thanos, Mimir, VictoriaMetrics, and Cortex read it, and nothing runs standalone (P4)
- ✅ The language ships with the stack: the UI, promtool, the API, and every feature flag arrive in the same Apache-2.0 binary, and a new cluster speaks the full language with no install
1.1.7 Trade-offs (not coupling)
- The lookback window is the language’s load-bearing default: staleness markers make a series vanish when its scrape stops, rate() extrapolates at window edges, and the semantics that make queries cheap are the semantics a migrated dashboard must re-check
- Feature flags graduate, no-op, and gate: the @ modifier, negative offsets, subqueries, duration expressions, and extended-API functions crossed the flag boundary across 2.x and 3.x, so the same expression can be valid on one server and a parse error on the next deployment
- Many-to-one matching is a bargain per operator: vector joins align on labels by operator rules, and the release notes show the edges — duplicate-series errors, dropped metric names, NaN propagating through mad_over_time — expressiveness bought one operator at a time
- A query is cheap; an evaluation is not: the text carries no cost model, and the engine’s sample limits, queue limits, and cardinality caps decide whether the one-liner lands
1.2 Ecosystem coupling
1.2.1 Performance
- ✅ Selectors are indexed lookups: the TSDB postings index serves label matchers, the 3.14 notes ship regex-set matching optimizations, and per-query statistics report the cost through the API
- ❌ Collector runtime is server latency: 3.0 auto-sets GOMEMLIMIT and GOMAXPROCS to container limits, and the 3.14 notes fix a 100%-CPU shutdown spin that ‘could delay graceful shutdown and trigger timeout-based kills’ — the Go runtime appears in scrape and query timings (R2)
- ⚠️ The tuning surface is engine limits: max samples per query, lookback window size, and subquery resolution are yaml and CLI knobs, and crossing them is an abort, not a plan choice
1.2.2 Ecosystem
- ❌ Tooling fragments across the sub-ecosystem: promtool, thanos tools, mimirtool, vmctl, and Grafana each carry rule checkers, explorers, and monitors for the same query text (Ec2)
- ❌ A niche market: PromQL expertise concentrates in cloud-native observability, and the hiring pool is a fraction of SQL’s (Ec3)
- ❌ Flags are a compatibility layer: the 3.0 migration guide exists to retire seven-year-old feature flags, rename
holt_winters, and repair regex semantics, and anold-uiflag keeps the prior UI alive — the language carries its own migration history (Ec7) - ✅ The stack is open end to end: Prometheus (Apache-2.0, CNCF), the client libraries, promtool, and the exposition formats are published, with checksummed downloads on prometheus.io
1.2.3 Evolution
- ❌ 3.0 shipped published breaking changes: the migration guide names them — range selectors turned left-open, so a subquery that returned two points returns one and ‘No Data’;
.now matches newlines;leandquantilelabels normalize, so alerts referencingle="1"stop working; strict Content-Type fails v2-compatible scrapes (V1) - ❌ Surface rides on feature flags: subqueries, the
@modifier, negative offsets,double_exponential_smoothing, duration expressions, and extended-API functions sit behind--enable-featureswitches that graduate, no-op, or gate per release — 3.14 made duration expressions default and promotedfirst_over_time(V7) - ✅ A predictable release rhythm: quarterly minor releases, named LTS lines (3.13, 3.5), a stability promise, and a published migration guide per major — the surface moves on months’ clocks
1.2.4 Domain
- ❌ Adopting PromQL means adopting the pull-model TSDB: scrape intervals, label conventions, counter-reset semantics, and the default lookback window are the domain, and the language has no shape outside them (D1)
- ✅ PromQL queries stored metric time-series data: selectors, range windows, and aggregation produce the series that dashboards and alert rules consume
- ⚠️ Dashboards and rules travel with the language: recording rules, alerting YAML, and Grafana expressions are companion surfaces, and a team maintaining the queries maintains all three
1.2.5 Learning
- ❌ Four semantics a SQL reader must rebuild: vector matchers replace WHERE, range windows replace BETWEEN, counter resets drive rate() and increase() extrapolation, and label-set rules decide which joins the operators admit (L1)
- ❌ The surface is a lattice of clauses, functions, modifiers, and flags: the docs split basics, functions, aggregation, subqueries, modifiers, matching, and statements across pages, and experimental functions hide behind CLI switches (L2)
- ✅ The basics page is readable in one sitting: selectors, operators, and functions with worked examples, and a full published function list
1.2.6 Syntax
- ❌ Operators share symbols with type-specific rules:
+adds vector-to-vector under label-matching rules and scalar-to-vector on others,-is unary only on some value kinds, strings (3.0) barely join binary operations, and theboolmodifier changes a comparison’s result type (S2) - ❌ Punctuation carries meaning:
{ }for matchers,=~and!~,:for subqueries,@for time,[5m]with unit letters,__name__, quoted UTF-8 names in 3.x — and after the 3.0 regex change, a misread pattern still parses and matches more (S3) - ✅ The core selector is four tokens:
{job="api"}andrate(http_requests_total[5m])state the common query in a line
1.2.7 Testing
- ❌ Faults surface at evaluation: many-to-many match errors, No Data from a short subquery after the 3.0 boundary change, and a regex selector that silently matches nothing report only when the query reaches the server (G3)
- ❌ Only the wall clock:
timestamp()andtime()read sample and evaluation time, the new start-timestamp function reads ingestion time, and the language names no monotonic clock for elapsed-time tests (G4) - ✅ A published test harness ships with the tool:
promtool test rulesunit-tests alerting and recording rules against input series, an evaluation time, and expected outputs, and the 3.0 notes add debug printouts to it - ✅ The UI explains the query: the 3.0 interface carries a PromLens-style explain tree and an Explain tab, and the API reports per-query statistics
1.2.8 Security
- ❌ Values coerce at evaluation: integer histogram bucket counts feed float64 arithmetic (the 3.14 notes fix sample-type conversions between float, integer-histogram, and float-histogram series),
label_replacewrites strings where a number was read, and histogram_quantile reads buckets the expression built by hand (Q2) - ❌ Counters ride IEEE-754: samples are float64, the project’s own guidance treats counters above 2^53 as losing integer precision, and the 3.14 notes track integer histogram values crossing float encodings in compaction fixes (Q4)
- ❌ String-built expressions are the injection surface: dashboards and rule generators interpolate values into expressions — the Grafana templating docs publish regex-escaping guidance precisely because a raw value can inject label matchers and operators into the query — and the language has no escape mechanism of its own (Q3)
- ⚠️ Regex is RE2-linear: label matchers compile to RE2 with a fast literal matcher (3.14 performance work), so the catastrophic backtracking a PCRE selector would invite is structurally absent — the remaining risk is cardinality, not injection
1.2.9 Delivery targets
What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.
| Target | Ships as | Crosses a producer boundary | Cross-release promise |
|---|---|---|---|
| query request | script | no | queries travel to the server as HTTP request text and rule files load as YAML at startup; nothing compiled crosses a producer boundary. |
1.2.10 Stored data formats
What the toolchain stores that outlives the program, and what the vendor publishes about reading it across a release boundary. Ec9 is present when one row carries a break: the reading promise published as broken, the writing direction published as unreadable elsewhere, or a break the probe harness has reproduced.
| Stored format | Reading promise | Writing promise |
|---|---|---|
| TSDB block directory (2.x → 3.x) | yes — the 3.0 migration guide publishes both directions: a v3 TSDB can be read by v2.55 and newer, so v3 opens the upgraded data, and a downgrade below v2.55 is stated to lose the TSDB persistent data — v3’s format is published as unreadable by older servers. [5] | published break |
| promtool tsdb dump export | recorded, not priced — promtool ships a tsdb dump command that exports samples from a block directory (the 3.14 notes fix it dropping native-histogram samples); the tool publishes an export, not a cross-version open promise. | — |
1.3 Engineering readiness
1.3.1 Reproducibility
- ✅ A query is a request text: the same expression on the same server version and TSDB reproduces the same samples, and there is no build artifact (Y1)
- ✅ Servers and consumers pin by version: the binary ships release versions (3.15.1 in late 2026) reported by the version API, and a Go consumer pins the module as an ordinary dependency (Y14)
- ⚠️ The deployment is the dataset: a result reproduces on a server with specific scrape config, retention, lookback, and out-of-order flags, not on the text alone
1.3.2 Supply chain
- ❌ Published libraries carry no signed provenance by default: binaries and Docker images ship with SHA256 checksums, exporters and client libraries sit on Maven Central, Go, and PyPI registries, and a consumer trusts the package installed (Y3)
- ✅ Go module paths, Maven Central, PyPI, and quay.io namespace every artifact, so there is no flat namespace to hijack (Y4)
- ✅ Advisories are published: the Prometheus repository maintains GitHub security advisories per release (the 3.15.1 notes bump dependency CVEs), and the Go advisory feed covers the module (Y16)
1.3.3 Observability
- ❌ No stable tracing standard is part of the language: exemplars link samples to trace IDs and the 3.0 OTLP receiver ingests OpenTelemetry metrics, but trace correlation is a deployment feature, and the query text carries no trace hook (Y5)
- ❌ No structured logging in the language: the server moved to Go’s log/slog in 3.0, a published format change, and the expression defines no logging construct (Y6)
- ✅ The server reports its queries: per-query statistics in the API, the TSDB status page, and the query log name the queries, their costs, and the head state behind a result (Y15)
1.3.4 Feedback
- ✅ The UI is submit-and-run: the browser query page runs an expression instantly, and promtool check and exec subcommands validate rules and run queries with no build step (Y7)
- ❌ No analyzer the project maintains: an in-editor PromQL extension ships linting in VS Code as an IDE plugin, and full checks land when the query reaches the server on every other editor (Y8)
- ❌ No source-level debugger: diagnosis goes through the explain tree, query statistics, and the server’s logs (Y13)
1.3.5 Interop
- ❌ No function interface inside the language: the extended API is a feature-flagged integration point where a process exposes functions the engine calls, and that wiring is server code, not a function the language declares (Y9)
- ❌ No portable target: a query evaluates on a TSDB-backed server, and nothing runs on a machine without a Prometheus-compatible engine (Y10)
- ✅ HTTP and OTLP carry results out: the query API answers JSON, the OTLP receiver takes OpenTelemetry metrics, and remote write moves series to any receiver implementing the published protocol
1.3.6 Governance
- ✅ Governance is a CNCF project: the Prometheus maintainers and technical oversight committee run public design discussions on GitHub, and the feature-flag graduation process is documented (Y11)
- ✅ The semantics are published: the querying docs define the language per release, the migration guide states every 3.0 semantics change, and the source is Apache-2.0 (Y12)
- ❌ No conformance mechanism tests the ecosystem: Thanos, Mimir, VictoriaMetrics, and Cortex each assert PromQL compatibility with their own suites, and no published suite with implementation reports decides the claim (Y17)
- ✅ Published parsers: the promql package is Apache-2.0 Go source, the grammar lives in the parser, and remote-read proxies re-implement it from the published docs (Y19)
1.4 Profile
Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.
1.4.1 Energy and cost
What this axis asks: what does a running program cost in energy and time?
- ⚠️ Runs on a Prometheus-class server: energy is the engine’s — scrape cadence, retention, and the query guards are the knobs a reader tunes.
1.4.2 AI and agent readiness
What this axis asks: how well does a coding model and an agent work in this language?
- ✅ A compact, heavily documented language: models write rate() and sum by queries reliably, and the published 3.0 migration notes are exactly what a generated 2.x-era query needs reviewed against.
1.4.3 Safety certification
What this axis asks: is there a certified or standards-qualified path to a safety-critical system?
- ⚠️ No certified path; Prometheus feeds production alerting pipelines, and its safety record is operational — release-note fixes for CPU spin on shutdown and rule-leak series — not qualification.
1.5 Scoring detail
1.5.1 Core coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Type | T1 |
dynamic no static check | language | ✅ | −15 |
T2 |
weak static | language | — | 0 | |
T3 |
dynamic/duck dispatch | language | — | 0 | |
T4 |
no sum types | language | ✅ | −4 | |
T5 |
no generics | language | ✅ | −4 | |
T6 |
no namespaces | language | ✅ | −8 | |
T7 |
type erasure/reflection | language | — | 0 | |
T8 |
operator overloading | language | — | 0 | |
T9 |
inheritance required for polymorphism | language | — | 0 | |
T10 |
no null-safety | language | ✅ | −8 | |
T11 |
no module boundary | language | ✅ | −8 | |
T12 |
no effect tracking | language | ✅ | −8 | |
T13 |
async/sync colouring | language | — | 0 | |
T14 |
unchecked foreign boundary | language | ✅ | −4 | |
T15 |
chars are encoding units | language | — | 0 | |
| Type cost | −16.9 (−59) | ||||
| Construction | C1 |
global mutable state by default | language | — | 0 |
C2 |
no immutability by default | language | ✅ | −4 | |
C3 |
constructors coupled to allocation | language | — | 0 | |
C4 |
no constructor/validation | language | ✅ | −4 | |
C5 |
unpinned collection order | language | ✅ | −4 | |
C6 |
aliasing by default | language | — | 0 | |
C7 |
undeclared control transfer | language | — | 0 | |
C8 |
no source-visible init order | language | — | 0 | |
| Construction cost | −3.4 (−12) | ||||
| Memory | M1 |
manual deallocation | runtime | — | 0 |
M2 |
GC non-deterministic pauses | runtime | — | 0 | |
M3 |
no RAII | language | — | 0 | |
M4 |
no ownership model | language | — | 0 | |
M5 |
uninitialized reads | language | — | 0 | |
M6 |
unchecked reinterpretation | language | — | 0 | |
Er6 |
uncatchable runtime fault | language | — | 0 | |
M7 |
reference cycles leak | runtime | — | 0 | |
| Memory cost | 0 | ||||
| Error | Er1 |
no structured path | language | ✅ | −15 |
Er2 |
unchecked exceptions only | language | — | 0 | |
Er3 |
errors ignored/non-exhaustive | language | ✅ | −4 | |
Er4 |
no composable result type | language | ✅ | −4 | |
Er5 |
no isolation unit for a fault | runtime | — | 0 | |
| Error cost | −6.6 (−23) | ||||
| Concurrency | K1 |
GIL/no parallel | runtime | — | 0 |
K2 |
shared mutable state default | language | — | 0 | |
K3 |
manual sync no race detection | runtime | — | 0 | |
K4 |
no structured concurrency | language | — | 0 | |
K5 |
no primitives | language | — | 0 | |
K6 |
thread-per-task cost | runtime | — | 0 | |
| Concurrency cost | 0 | ||||
| Platform | P1 |
cannot function outside one vendor/domain | context | — | 0 |
P2 |
single-vendor but other uses | context | — | 0 | |
P3 |
legacy/discontinued platform | context | — | 0 | |
P4 |
poor domain fit | context | ✅ | −8 | |
| Platform cost | −2.3 (−8) |
Core coupling score: 70.9/100 — 102 of the 350 inventory points are present, so the axis cost is 100 × 102 ÷ 350 = 29.1 and the score is 100 − 29.1. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.2 Ecosystem coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Performance | R1 |
interpreted no AOT/JIT | runtime | — | 0 |
R2 |
GC pauses | runtime | ✅ | −8 | |
R3 |
JIT warmup | runtime | — | 0 | |
| Performance cost | −3.1 (−8) | ||||
| Ecosystem | Ec1 |
no package manager | context | — | 0 |
Ec2 |
fragmented tooling | context | ✅ | −8 | |
Ec3 |
small/niche/discontinued | context | ✅ | −8 | |
Ec4 |
proprietary | context | — | 0 | |
Ec5 |
platform-locked tooling | context | — | 0 | |
Ec6 |
monoculture | context | — | 0 | |
Ec7 |
legacy burden | context | ✅ | −8 | |
Ec8 |
unpromised binary boundary | context | — | 0 | |
Ec9 |
unpromised data boundary | context | ✅ | −8 | |
| Ecosystem cost | −12.5 (−32) | ||||
| Evolution | V1 |
breaking changes | language | ✅ | −8 |
V2 |
frozen | context | — | 0 | |
V3 |
discontinued | context | — | 0 | |
V4 |
glacial standards | context | — | 0 | |
V5 |
silent default drift | runtime | — | 0 | |
V7 |
build-variant state space | context | ✅ | −8 | |
| Evolution cost | −6.2 (−16) | ||||
| Domain | D1 |
domain/vendor lock-in | context | ✅ | −15 |
D3 |
framework forces architecture | context | — | 0 | |
| Domain cost | −5.9 (−15) | ||||
| Learning | L1 |
steep | context | ✅ | −8 |
L2 |
large surface/multi-paradigm | context | ✅ | −4 | |
L3 |
sparse docs | context | — | 0 | |
| Learning cost | −4.7 (−12) | ||||
| Syntax | S1 |
verbose | language | — | 0 |
S2 |
inconsistent | language | ✅ | −8 | |
S3 |
punctuation-heavy | language | ✅ | −4 | |
| Syntax cost | −4.7 (−12) | ||||
| Testing | G1 |
weak tooling | context | — | 0 |
G2 |
poor debugging | context | — | 0 | |
G3 |
runtime-only errors | context | ✅ | −4 | |
G4 |
no published monotonic clock | runtime | ✅ | −4 | |
| Testing cost | −3.1 (−8) | ||||
| Security | Q1 |
memory-unsafe | language | — | 0 |
Q2 |
dynamic/weak typing risk | language | ✅ | −8 | |
Q3 |
known vulnerability/injection | context | ✅ | −8 | |
Q4 |
silent integer overflow | language | ✅ | −15 | |
| Security cost | −12.1 (−31) |
Ecosystem coupling score: 47.7/100 — 134 of the 256 inventory points are present, so the axis cost is 100 × 134 ÷ 256 = 52.3 and the score is 100 − 52.3. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.3 Engineering readiness Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Reproducibility | Y1 |
build not reproducible | context | — | 0 |
Y2 |
dependencies not pinned | context | — | 0 | |
Y14 |
no toolchain version pin | context | — | 0 | |
Y18 |
no machine-read project contract | context | — | 0 | |
| Reproducibility cost | 0 | ||||
| Supply chain | Y3 |
no signed provenance | context | ✅ | −15 |
Y4 |
registry without namespacing | context | — | 0 | |
Y16 |
no advisory feed | context | — | 0 | |
| Supply chain cost | −8.8 (−15) | ||||
| Observability | Y5 |
no stable tracing standard | context | ✅ | −8 |
Y6 |
no structured logging | context | ✅ | −4 | |
Y15 |
no post-mortem diagnostics | runtime | — | 0 | |
| Observability cost | −7.0 (−12) | ||||
| Feedback | Y7 |
slow build | context | — | 0 |
Y8 |
no fast in-editor analysis | context | ✅ | −4 | |
Y13 |
no bundled debugger | context | ✅ | −8 | |
| Feedback cost | −7.0 (−12) | ||||
| Interop | Y9 |
no foreign-function interface | language | ✅ | −8 |
Y10 |
no portable target | context | ✅ | −4 | |
| Interop cost | −7.0 (−12) | ||||
| Governance | Y11 |
single-vendor governance | context | — | 0 |
Y12 |
closed specification | context | — | 0 | |
Y17 |
no conformance mechanism | context | ✅ | −8 | |
Y19 |
no published parser | context | — | 0 | |
| Governance cost | −4.7 (−8) |
Engineering readiness score: 65.5/100 — 59 of the 171 inventory points are present, so the axis cost is 100 × 59 ÷ 171 = 34.5 and the score is 100 − 34.5. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
Verdict: PromQL is the most compact language in this analysis: selector syntax over a pull-model TSDB, read by a multi-vendor engine family — Prometheus, Thanos, Mimir, VictoriaMetrics, and Cortex — governed by a CNCF project with quarterly releases, named LTS lines, and a published migration guide that lists every 3.0 semantics change: the newline regex rule, the left-open range boundary, le-label normalization, and UTF-8 names all carry documented fixes. Its costs are the metric model’s own: absence is an empty vector, not a type; NaN propagates silently; label identity is composed by regex, rewritten at the OTLP ingest boundary, and paced by the Go runtime, with no constructor check; a vector has no pinned order; the surface rides on feature flags, so a valid parse depends on the deployment; and dashboards interpolate values into expressions the language cannot escape. Main strengths: promtool’s published rule-test harness, the 3.0 explain tree, fully documented breaking changes, a warnings channel in the API response, and ecosystem-wide parser publication. Main weaknesses: a niche beyond observability, no cross-engine conformance suite, no user-function mechanism inside the language, and float64 counters documented as exact only below 2^53.
The formal development. The definitions, theorems, and proofs behind this page are published in:
- On the Nature of Coupling: All Coupling as Shared Resource Access — Zenodo, 2026 — doi:10.5281/zenodo.21925122
- Coupling as a Consequence of Cohesion: Decomposition, the Coupling Floor, and Domain-Imposed Coupling — Zenodo, 2026 — doi:10.5281/zenodo.21925201
- On the Nature of Cohesion: Cohesion as Correctness Relative to a Partitioning Rule — Zenodo, 2026 — doi:10.5281/zenodo.21703193