-
Maven Dependency
<dependency> <groupId>eu.agilejava</groupId> <artifactId>snoop</artifactId> <version>${snoop.version}</version> </dependency>
-
Enable Snoop
@EnableSnoopClient(serviceName="myservice") @ApplicationPath("api") public class ApplicationConfig extends Application { ... }
-
Configure the service
-
Use
snoop.yml
snoop: host: http://localhost port: 8080 serviceRoot: snoop-hello-service/api snoopService: 192.168.59.103:8081/snoop-service/
-
Or by environment variables (remember prefix with service name)
docker run -it -p 8080:8080 -e "hello.host=http://192.168.59.103" -e "hello.port=8080" -e "hello.serviceRoot=snoop-hello-service/api" -e "hello.snoopService=192.168.59.103:8081/snoop-service/" ivargrimstad/snoop-hello
-
Or by system property
-Dhost=http://192.168.59.103 -Dport=8080 -DserviceRoot=snoop-hello-service/api -DsnoopService: 192.168.59.103:8081/snoop-service/
-
This repository has been archived by the owner on Oct 22, 2018. It is now read-only.