zio.http.metrics
package zio.http.metrics
Members list
Type members
Classlikes
object MetricsEndpoint
One-stop shop for exposing Prometheus metrics over HTTP.
One-stop shop for exposing Prometheus metrics over HTTP.
Instruments every route with request/response metrics and appends a /metrics endpoint that serves the Prometheus text format.
Server
.serve(MetricsEndpoint.withMetrics(myRoutes))
.provide(Server.default, MetricsEndpoint.layers())
Attributes
- Source
- MetricsEndpoint.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MetricsEndpoint.type
In this article