prometheusfdw
prometheusfdw · Queries Prometheus instant-vector data through a PostgreSQL foreign data wrapper.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100897 | prometheusfdw | prometheusfdw | 0.0.2 | FDW | Unknown | Rust |
PostgreSQL · 14, 15, 16
Usage
Sources:
prometheusfdw is a Rust/pgrx foreign data wrapper for reading instant-query results from Prometheus-compatible HTTP endpoints. The extension installs handler and validator functions; the wrapper, server, and foreign tables are created explicitly.
Foreign-table option query holds PromQL. The README documents ${var} substitution from WHERE qualifiers, column time timestamp for instant-query time, and optional option rate for VictoriaMetrics. Range queries remain explicitly unfinished, so do not infer historical-window support from the FDW interface.
The pinned Cargo manifest and generated control line report 0.0.2, with features for PostgreSQL 14, 15, and 16. Verify the exact artifact because other release packaging uses a different version line. Restrict server-definition privileges, prefer authenticated TLS endpoints, set query and statement timeouts, and test label-to-column mapping, missing samples, cardinality, remote errors, and planner behavior.