Skip to content

Add OpenMetrics HTTP blackhole body#1895

Draft
scottopell wants to merge 1 commit into
mainfrom
sopell/openmetrics
Draft

Add OpenMetrics HTTP blackhole body#1895
scottopell wants to merge 1 commit into
mainfrom
sopell/openmetrics

Conversation

@scottopell
Copy link
Copy Markdown
Contributor

Summary

Adds a reusable lading_payload OpenMetrics module and wires it into the HTTP blackhole as an openmetrics body variant. This lets scrape-based tests serve generated Prometheus/OpenMetrics text bodies without embedding large static YAML strings.

Validation

Local checks run:

  • cargo fmt --all
  • ci/fmt
  • cargo check -p lading-payload
  • cargo check -p lading --no-default-features --tests
  • cargo test -p lading-payload
  • cargo test -p lading --no-default-features blackhole::http::tests -- --nocapture

Full ci/validate could not run in the workspace because local system dependencies are missing: shellcheck, and all-features checks need FUSE libs that CI installs.

Notes

Example config added in examples/lading-openmetrics.yaml.

@datadog-official

This comment has been minimized.

@scottopell scottopell force-pushed the sopell/openmetrics branch from d2c5b17 to 87e2bc9 Compare May 23, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant