Skip to content

feat(output): prometheus-scrape pull endpoint (PIPE-1488, BP-469) - #321

Merged
Dylan-M merged 7 commits into
dylanmyers/pipe-1487-prometheus-remote-write-output-push-clientfrom
dylanmyers/pipe-1488-prometheus-scrape-output-pull-endpoint
Oct 16, 2026
Merged

Dylan-M merged 7 commits into
dylanmyers/pipe-1487-prometheus-remote-write-output-push-clientfrom
dylanmyers/pipe-1488-prometheus-scrape-output-pull-endpoint

Conversation

@Dylan-M

@Dylan-M Dylan-M commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Proposed Change

Adds a prometheus-scrape output: a metrics-only pull endpoint. It hosts an HTTP /metrics endpoint in Prometheus text exposition format, so a Prometheus server or the collector prometheusreceiver scrapes blitz directly. Sibling to the push-based prometheus-remote-write output; both serialize from the shared internal/prommap model.

The output keeps the latest value per series (name, type, label set) in an in-memory registry and serves a snapshot on each scrape.
By default no explicit timestamp is written and the scraper stamps at scrape time (idiomatic).
Option emitTimestamps: true appends each sample's millisecond timestamp (rare, but does exist in the wild).

Hand-rolled as a Round 3 output now. Will need to migrate to the later Effector / Push Core server model.

Checklist
  • Changes are tested
  • CI has passed

@Dylan-M
Dylan-M requested review from a team as code owners September 24, 2026 19:40
Comment thread output/promscrape/encode.go Outdated
Comment thread output/promscrape/registry.go Outdated
@Dylan-M
Dylan-M force-pushed the dylanmyers/pipe-1488-prometheus-scrape-output-pull-endpoint branch from ee5b3c0 to c791197 Compare September 28, 2026 18:09
@Dylan-M
Dylan-M requested a review from eKuG September 28, 2026 18:09
@eKuG
eKuG added this pull request to stack #326 September 28, 2026 18:41
@Dylan-M
Dylan-M force-pushed the dylanmyers/pipe-1488-prometheus-scrape-output-pull-endpoint branch from c791197 to 6236cdc Compare October 15, 2026 17:22
@Dylan-M
Dylan-M requested a review from eKuG October 15, 2026 17:23
@Dylan-M
Dylan-M force-pushed the dylanmyers/pipe-1488-prometheus-scrape-output-pull-endpoint branch from 9cb0f78 to 014d32e Compare October 16, 2026 14:09
@Dylan-M
Dylan-M added this pull request to the merge queue Oct 16, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue because a pull request earlier in the stack was removed Oct 16, 2026
@Dylan-M
Dylan-M force-pushed the dylanmyers/pipe-1488-prometheus-scrape-output-pull-endpoint branch from 014d32e to f66b6cf Compare October 16, 2026 15:02
@Dylan-M
Dylan-M force-pushed the dylanmyers/pipe-1488-prometheus-scrape-output-pull-endpoint branch from f66b6cf to cb0943d Compare October 16, 2026 15:30
@Dylan-M
Dylan-M added this pull request to the merge queue Oct 16, 2026
Merged via the queue into main with commit 605e016 Oct 16, 2026
38 of 50 checks passed
@Dylan-M
Dylan-M deleted the dylanmyers/pipe-1488-prometheus-scrape-output-pull-endpoint branch October 16, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants