Skip to main content

Module server

Module server 

Source
Expand description

HTTP server for exposing Prometheus metrics

This module provides an HTTP server that exposes metrics via the /metrics endpoint in Prometheus text format.

Structs§

MetricsResponse
Response type for metrics endpoint (used for testing)
MetricsServer
HTTP server for exposing Prometheus metrics

Functions§

metrics_handler
Handles GET /metrics requests