Skip to content

Commit 291b9d2

Browse files
committed
docs: added readmi
1 parent 41c4caf commit 291b9d2

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

README.MD

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
**aws-client-monitor** is created for analysing locally running applications that are interacting with **AWS**.
2+
3+
Very useful on local development, troubleshooting or profiling 3rd party apps.
4+
5+
Setup is simple:
6+
7+
1. for each app set following environment variables:
8+
9+
```shell
10+
export AWS_CSM_ENABLED=true
11+
export AWS_CSM_CLIENT_ID=my-app-service-name
12+
```
13+
14+
Optional:
15+
```shell
16+
export AWS_CSM_HOST=127.0.0.1
17+
export AWS_CSM_PORT=31000
18+
```
19+
20+
2. Start ``aws-client-monitor``
21+
22+
```shell
23+
docker run -p 8080:8080 -p 31000:31000/udp rtsypuk/aws-client-monitor:development
24+
```
25+
26+
3. After that any apps will automatically send information about invocation of AWS API to the ``aws-client-monitor``:
27+
28+
```shell
29+
2024-12-22 16:35:23 UTC [Client:cli-session(aws-cli/1.27.92 md/Botoco) ==========> AWS:S3:ListBuckets(s3.eu-west-1.amazonaws.com)] : 205ms eu-west-1 Code:400
30+
2024-12-22 16:35:23 UTC [Client:cli-session(aws-cli/1.27.92 md/Botoco) ==========> AWS:S3:ListBuckets] : 208ms eu-west-1 Code:400
31+
2024-12-22 16:35:27 UTC [Client:cli-session(aws-cli/1.27.92 md/Botoco) ==========> AWS:Lambda:ListFunctions(lambda.eu-west-1.amazonaws.com)] : 222ms eu-west-1 Code:403
32+
2024-12-22 16:35:27 UTC [Client:cli-session(aws-cli/1.27.92 md/Botoco) ==========> AWS:Lambda:ListFunctions] : 226ms eu-west-1 Code:403
33+
2024-12-22 16:35:23 UTC [Client:user-service(aws-cli/1.27.92 md/Botoco) ==========> AWS:S3:ListBuckets(s3.eu-west-1.amazonaws.com)] : 205ms eu-west-1 Code:400
34+
2024-12-22 16:35:23 UTC [Client:user-service(aws-cli/1.27.92 md/Botoco) ==========> AWS:S3:ListBuckets] : 208ms eu-west-1 Code:400
35+
2024-12-22 16:35:27 UTC [Client:subscirption-service(aws-cli/1.27.92 md/Botoco) ==========> AWS:Lambda:ListFunctions(lambda.eu-west-1.amazonaws.com)] : 222ms eu-west-1 Code:403
36+
2024-12-22 16:35:27 UTC [Client:subscirption-service(aws-cli/1.27.92 md/Botoco) ==========> AWS:Lambda:ListFunctions] : 226ms eu-west-1 Code:403
37+
38+
```
39+
40+
## Browser UI-based mode:
41+
42+
Information is also available on UI (http://localhost:8080)
43+
44+
![ui_screen.png](ui.png)

ui.png

265 KB
Loading

0 commit comments

Comments
 (0)