You will need to setup two repositories.
The sample application is based upon Spring Pet Clinic canonical app, with adjustments made to add Tanzu Observability integration.
You can choose to fork, my repo https://github.com/doddatpivotal/spring-petclinic which may grow stale and be done with it.
Or you could fork the Spring Project's repo https://github.com/spring-projects/spring-petclinic and make the appropriate adjustments.
- Add following to spring petclinic pom.xml
<wavefront.version>2.0.1</wavefront.version>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.wavefront</groupId>
<artifactId>wavefront-spring-boot-bom</artifactId>
<version>${wavefront.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
...
<dependency>
<groupId>com.wavefront</groupId>
<artifactId>wavefront-spring-boot-starter</artifactId>
</dependency>
- Update PetclinicIntegrationTests.java
import org.springframework.test.context.ActiveProfiles;
@ActiveProfiles("test")
- Add test profile properties
/src/test/resources/application-test.properties
management.metrics.export.wavefront.enabled=false
management.metrics.export.wavefront.apiToken=foo
- Config Repo: Fork https://github.com/doddatpivotal/spring-petclinic-config