xuemin.guan
10/23/2018, 10:21 AMarve
10/23/2018, 10:38 AMHttp4kServer
and tie the metrics endpoints to that server instead?xuemin.guan
10/23/2018, 10:52 AMarve
10/23/2018, 10:54 AMval registry = SimpleMeterRegistry()
val app = MetricFilters.Server.RequestCounter(registry)
.then(MetricFilters.Server.RequestTimer(registry))
.then(routes(/* Your routes here*/))
.asServer(Jetty(port))
val metrics = routes(
"/metrics" bind GET to {registry.someMethodToFetchRelevantMetrics }
).asServer(Jetty(otherPort))
xuemin.guan
10/23/2018, 11:10 AMarve
10/23/2018, 11:12 AMdave
10/23/2018, 8:29 PMxuemin.guan
10/24/2018, 1:15 PM