Warning
Docs have been moved to the atlas-docs site. This page is no longer maintained.
Servo Registry¶
Warning
ServoRegistry is deprecated. If you are running internally at Netflix, see the Netflix Integration docs instead.
Registry that uses servo as the underlying
implementation. To use the servo registry, add a dependency on the
spectator-reg-servo
library. For gradle:
com.netflix.spectator:spectator-reg-servo:${version}
Then when initializing the application, use the ServoRegistry
. If using guice
then that would look like:
Injector injector = Guice.createInjector(new AbstractModule() {
@Override protected void configure() {
}
@Provides
@Singleton
private Registry providesRegistry() {
return new ServoRegistry();
}
});
For more information see the servo example.