| Constructor and Description |
|---|
Server(org.eclipse.jetty.server.Server server,
FooServlet foo,
BarServlet bar,
Set<io.prometheus.client.Prometheus.ExpositionHook> hooks) |
@Inject public Server(org.eclipse.jetty.server.Server server, FooServlet foo, BarServlet bar, Set<io.prometheus.client.Prometheus.ExpositionHook> hooks)
public void configure()
We are optionally demonstrating the ability to dynamically add extra Prometheus.ExpositionHook via Guice. It is possible to add
registrations in static blocks, but here we are using Guice's Multibinder capability to provision some hooks.
public void run()
Copyright © 2015. All Rights Reserved.