Skip to content

Add HTTP server exposure support to PrometheusExporter using prometheus::Exposer. - #707

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_965793171
Open

Add HTTP server exposure support to PrometheusExporter using prometheus::Exposer.#707
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_965793171

Conversation

@copybara-service

Copy link
Copy Markdown

Add HTTP server exposure support to PrometheusExporter using prometheus::Exposer.

Key improvements:

  • Add ExporterOptions struct in metrics_backend.h with port and host configuration.
  • Support runtime environment variable configuration through TPU_RAIDEN_PROMETHEUS_PORT and TPU_RAIDEN_PROMETHEUS_HOST.
  • Start CivetServer HTTP server on positive port during exporter initialization and stop cleanly via RAII on destruction.
  • Update unit tests with port binding verification and error handling.

…theus::Exposer`.

Key improvements:
- Add `ExporterOptions` struct in `metrics_backend.h` with port and host configuration.
- Support runtime environment variable configuration through `TPU_RAIDEN_PROMETHEUS_PORT` and `TPU_RAIDEN_PROMETHEUS_HOST`.
- Start CivetServer HTTP server on positive port during exporter initialization and stop cleanly via RAII on destruction.
- Update unit tests with port binding verification and error handling.

PiperOrigin-RevId: 965793171
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.

1 participant