MetricsService
Parameters
port
The HTTP port for the metrics endpoint.
path
The URL path for the Prometheus metrics servlet (without a leading slash).
initBlock
An optional initialization block invoked after the service listener is registered.