@@ -97,28 +97,51 @@ To quickly see the application running using pre-built docker images and docker-
97
97
98
98
### Using OpenTelemetry
99
99
100
+ 1 . Clone this repository
100
101
1 . Open terminal under ` ready-to-run\sample `
101
102
1 . Execute ` docker-compose up `
102
- 1 . Generate load with ` watch -n 2 curl --request GET http://localhost:5001/api/enqueue/WebSiteA `
103
- 1 . View traces in [ Jaeger] ( http://localhost:16686/ )
104
- 1 . View metrics by searching for "Enqueued_Item" in [ Prometheus] ( http://localhost:9090 )
105
- 1 . Build dashboards in [ Grafana] ( http://localhost:3000/ ) (admin/password1)
103
+ 1 . Generate load in terminal with
104
+
105
+ ``` bash
106
+ watch -n 2 curl --request GET http://localhost:5001/api/enqueue/WebSiteA
107
+ ```
108
+
109
+ for PowerShell use this script:
110
+
111
+ ``` Powershell
112
+ while (1) {Invoke-WebRequest -Uri http://localhost:5001/api/enqueue/WebSiteA; sleep 2}
113
+ ```
114
+
115
+ 4 . View traces in [ Jaeger] ( http://localhost:16686/ )
116
+ 5 . View metrics by searching for "Enqueued_Item" in [ Prometheus] ( http://localhost:9090 )
117
+ 6 . Build dashboards in [ Grafana] ( http://localhost:3000/ ) (admin/password1)
106
118
107
119
### Using Application Insights SDK
108
120
121
+ 1 . Clone this repository
109
122
1 . Open terminal under ` ready-to-run\sample `
110
- 2 . Add .env file with following content:
123
+ 1 . Create file ` ready-to-run\sample\ .env` with following content:
111
124
112
125
``` env
113
126
USE_APPLICATIONINSIGHTS=true
114
127
USE_OPENTELEMETRY=false
115
128
AI_INSTRUMENTATIONKEY=<ENTER-APPLICATION-INSIGHTS-INSTRUMENTATION-KEY>
116
129
```
117
130
118
- 3 . Execute ` docker-compose up `
119
- 4 . Generate load with ` watch -n 2 curl --request GET http://localhost:5001/api/enqueue/WebSiteA `
120
- 5 . View logs, traces and metrics in Azure Portal Application Insights
131
+ 4 . Execute ` docker-compose up `
132
+ 5 . Generate load in terminal with
121
133
134
+ ``` bash
135
+ watch -n 2 curl --request GET http://localhost:5001/api/enqueue/WebSiteA
136
+ ```
137
+
138
+ for PowerShell use this script:
139
+
140
+ ``` Powershell
141
+ while (1) {Invoke-WebRequest -Uri http://localhost:5001/api/enqueue/WebSiteA; sleep 2}
142
+ ```
143
+
144
+ 5 . View logs, traces and metrics in Azure Portal Application Insights
122
145
123
146
## Conclusion
124
147
0 commit comments