-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from TeamCodeStream/nrqlfile
Update readme and add nrql file
- Loading branch information
Showing
2 changed files
with
24 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,8 @@ | ||
# Modified Spring Pet Clinic for testing NR's CLM | ||
# CodeStream Demo Repository | ||
|
||
## Getting the app running with docker | ||
Be sure to refer to the [CodeStream Demo Setup & Script](https://docs.google.com/document/d/1_TF6-McJ5TIMAs-ajnBTnMSMRfpR9oapoi16StCPLLs/edit?usp=sharing) document, and help is always available in the [#codestream-demo-setup](https://newrelic.enterprise.slack.com/archives/C04RAE53YDD) channel on Slack. | ||
|
||
``` | ||
git clone https://github.com/meiao/spring-petclinic.git | ||
cd spring-petclinic | ||
NEW_RELIC_LICENSE_KEY=12345 docker-compose up -d --build | ||
``` | ||
Open the following files before you start your demo. | ||
|
||
Agent, tester, and app logs can be found mounted in ./logs | ||
|
||
The docker app will generate some traffic that should be visible in NR1 under "CLM Test App" | ||
|
||
## Getting the code and running without docker | ||
|
||
``` | ||
git clone https://github.com/meiao/spring-petclinic.git | ||
cd spring-petclinic | ||
NEW_RELIC_LICENSE_KEY=12345 ./gradlew bootRun | ||
``` | ||
Substitute 12345 with your New Relic license key. | ||
|
||
You can then access petclinic here: | ||
- react: http://localhost:8081/react | ||
- legacy app: http://localhost:8081/ | ||
|
||
The main page will have some links that exercise auto and manual instrumentation in different modes. | ||
|
||
The respective code is in ClmController.java. | ||
|
||
The top menu will take you to the regular Spring Pet Clinic application. | ||
|
||
Requires Java 11 or higher. | ||
- [ClmController.java](src/java-spring-demogorgon/src/main/java/org/springframework/samples/petclinic/clm/ClmController.java) | ||
- [demo_queries.nrql](demo_queries.nrql) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// table example | ||
|
||
FROM Transaction SELECT * | ||
|
||
// billboard example | ||
|
||
FROM Transaction SELECT count(*) | ||
|
||
// line example | ||
|
||
FROM Transaction SELECT count(*) TIMESERIES | ||
|
||
// multi-line example | ||
|
||
FROM Transaction SELECT average(duration) * count(*) facet name TIMESERIES | ||
|
||
// json example | ||
|
||
FROM Transaction SELECT count(*) facet name TIMESERIES |