Skip to content

Commit f265c21

Browse files
authored
Merge pull request #25 from TeamCodeStream/nrqlfile
Update readme and add nrql file
2 parents 155ba4d + d15f03c commit f265c21

2 files changed

Lines changed: 24 additions & 31 deletions

File tree

README.md

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,8 @@
1-
# Modified Spring Pet Clinic for testing NR's CLM
1+
# CodeStream Demo Repository
22

3-
## Getting the app running with docker
3+
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.
44

5-
```
6-
git clone https://github.com/meiao/spring-petclinic.git
7-
cd spring-petclinic
8-
NEW_RELIC_LICENSE_KEY=12345 docker-compose up -d --build
9-
```
5+
Open the following files before you start your demo.
106

11-
Agent, tester, and app logs can be found mounted in ./logs
12-
13-
The docker app will generate some traffic that should be visible in NR1 under "CLM Test App"
14-
15-
## Getting the code and running without docker
16-
17-
```
18-
git clone https://github.com/meiao/spring-petclinic.git
19-
cd spring-petclinic
20-
NEW_RELIC_LICENSE_KEY=12345 ./gradlew bootRun
21-
```
22-
Substitute 12345 with your New Relic license key.
23-
24-
You can then access petclinic here:
25-
- react: http://localhost:8081/react
26-
- legacy app: http://localhost:8081/
27-
28-
The main page will have some links that exercise auto and manual instrumentation in different modes.
29-
30-
The respective code is in ClmController.java.
31-
32-
The top menu will take you to the regular Spring Pet Clinic application.
33-
34-
Requires Java 11 or higher.
7+
- [ClmController.java](src/java-spring-demogorgon/src/main/java/org/springframework/samples/petclinic/clm/ClmController.java)
8+
- [demo_queries.nrql](demo_queries.nrql)

demo_queries.nrql

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// table example
2+
3+
FROM Transaction SELECT *
4+
5+
// billboard example
6+
7+
FROM Transaction SELECT count(*)
8+
9+
// line example
10+
11+
FROM Transaction SELECT count(*) TIMESERIES
12+
13+
// multi-line example
14+
15+
FROM Transaction SELECT average(duration) * count(*) facet name TIMESERIES
16+
17+
// json example
18+
19+
FROM Transaction SELECT count(*) facet name TIMESERIES

0 commit comments

Comments
 (0)