Skip to content

Commit c35f48d

Browse files
Kalyan Reddy DaidaKalyan Reddy Daida
authored andcommitted
Welcome to Stack Simplify
1 parent fbc6c9b commit c35f48d

File tree

1 file changed

+17
-17
lines changed
  • 18-EKS-Monitoring-using-CloudWatch-Container-Insights

1 file changed

+17
-17
lines changed

18-EKS-Monitoring-using-CloudWatch-Container-Insights/README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
# Monitoring EKS using CloudWatch Container Insigths
22

3-
## Step-00: Introduction
3+
## Step-01: Introduction
44
- What is CloudWatch?
55
- What are CloudWatch Container Insights?
66
- What is CloudWatch Agent and Fluentd?
77

8-
9-
## Step-01: Deploy Sample Nginx Application to generate Load
10-
```
11-
# Deploy
12-
kubectl apply -f kube-manifests
13-
14-
# Access Application
15-
http://<Network-Load-Balancer-URL>/
16-
```
17-
188
## Step-02: Associate CloudWatch Policy to our EKS Worker Nodes Role
199
- Go to Services -> EC2 -> Worker Node EC2 Instance -> IAM Role -> Click on that role
2010
```
@@ -51,25 +41,35 @@ curl -s https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-containe
5141
kubectl -n amazon-cloudwatch get daemonsets
5242
```
5343

54-
## Step-04: Create the load on our Sample Nginx Pod
44+
45+
## Step-04: Deploy Sample Nginx Application to generate Load
46+
```
47+
# Deploy
48+
kubectl apply -f kube-manifests
49+
50+
# Access Application
51+
http://<Network-Load-Balancer-URL>/
52+
```
53+
54+
## Step-05: Create the load on our Sample Nginx Pod
5555
```
5656
# Generate Load
5757
kubectl run --generator=run-pod/v1 apache-bench -i --tty --rm --image=httpd -- ab -n 500000 -c 1000 http://sample-nginx-service.default.svc.cluster.local/
5858
```
5959

60-
## Step-05: Access CloudWatch Dashboard & Generate Traffic using Postman Runner
60+
## Step-06: Access CloudWatch Dashboard & Generate Traffic using Postman Runner
6161
- Access CloudWatch Container Insigths Dashboard
6262

6363

64-
## Step-06: CloudWatch Log Insights
64+
## Step-07: CloudWatch Log Insights
6565
- View Container logs
6666

6767

68-
## Step-07: CloudWatch Alarms from metrics
68+
## Step-08: CloudWatch Alarms from metrics
6969
- Create Alarms
7070

7171

72-
## Step-08: Clean-Up Container Insights
72+
## Step-09: Clean-Up Container Insights
7373
```
7474
# Template
7575
curl https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/latest/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml | sed "s/{{cluster_name}}/cluster-name/;s/{{region_name}}/cluster-region/" | kubectl delete -f -
@@ -78,7 +78,7 @@ curl https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-i
7878
curl https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/latest/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml | sed "s/{{cluster_name}}/eksdemo1/;s/{{region_name}}/us-east-1/" | kubectl delete -f -
7979
```
8080

81-
## Step-09: Clean-Up Application
81+
## Step-10: Clean-Up Application
8282
```
8383
# Delete Apps
8484
kubectl delete -f kube-manifests/

0 commit comments

Comments
 (0)