MetricsService
constructor(port: Int, path: String, host: String? = null, registry: PrometheusRegistry = PrometheusRegistry.defaultRegistry, initBlock: MetricsService.() -> Unit = {})
Parameters
port
The HTTP port for the metrics endpoint.
path
The URL path for the Prometheus metrics servlet, with or without a leading slash.
host
The interface to bind to, or null to bind every interface.
registry
The PrometheusRegistry to serve. Defaults to PrometheusRegistry.defaultRegistry.
initBlock
An optional initialization block invoked after the service listener is registered.