You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 02-path-working-with-clusters/207-cluster-monitoring-with-datadog/readme.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ image::logmonitor.png[]
87
87
88
88
The goal of this workshop is to set up a full stack application on AWS EKS and see how each layer of the stack can be monitored with the Datadog Agent.
89
89
90
-
Start by taking a look at the link:../201-cluster-monitoring/templates/datadog/agent.yaml[manifest to run the Datadog Agent].
90
+
Start by taking a look at the link:../207-cluster-monitoring-with-datadog/templates/datadog/agent.yaml[manifest to run the Datadog Agent].
91
91
Insert a Datadog API Key that can be found in your https://app.datadoghq.com/account/settings#api[Datadog account] in the `value: <DD_API_KEY>` placeholder.
Copy file name to clipboardExpand all lines: 03-path-application-development/305-app-scaling-custom-metrics/readme.adoc
+50-12Lines changed: 50 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ Autoscaling over External Metrics does not require the Node Agent to be running,
24
24
Nevertheless, for this walkthrough, we autoscale an NGINX Deployment based off of NGINX metrics, collected by a Node Agent.
25
25
26
26
Before proceeding, please make sure you went through the section 207 of this workshop.
27
-
This entails tat you have Node Agents running with the Autodiscovery process enabled and functional.
27
+
This entails that you have Node Agents running with the Autodiscovery process enabled and functional.
28
28
29
-
In order to autoscale in Kubernetes, you need to register a Custom Metrics Server - The Datadog Cluster Agent implements this feature.
29
+
In order to autoscale in Kubernetes, you need to register a Custom/External Metrics Server - The Datadog Cluster Agent implements this feature.
30
30
31
31
=== Spinning up the Datadog Cluster Agent
32
32
@@ -40,7 +40,7 @@ clusterrolebinding.rbac.authorization.k8s.io "dca" created
40
40
serviceaccount "dca" created
41
41
```
42
42
43
-
Add your <API_KEY> and <APP_KEY> in the link:../305-app-scaling-custom-metrics/templates/cluster-agent/cluster-agent.yaml[Deployment manifest of the Datadog Cluster Agent].
43
+
Add your <API_KEY> and <APP_KEY> in the link:../305-app-scaling-custom-metrics/templates/cluster-agent.yaml[Deployment manifest of the Datadog Cluster Agent].
44
44
Then enable the HPA Processing by setting the `DD_EXTERNAL_METRICS_PROVIDER_ENABLED` variable to true.
45
45
Finally, spin up the resources:
46
46
@@ -82,6 +82,29 @@ clusterrole.rbac.authorization.k8s.io "external-metrics-reader" created
82
82
clusterrolebinding.rbac.authorization.k8s.io "external-metrics-reader" created
83
83
```
84
84
85
+
You can confirm that the cluster agent is properly registered as an External Metrics Provider by running:
At this point, the set up is ready to be stressed. As a result of the stress Kubernetes will autoscale the NGINX pods.
143
173
144
-
TODO
174
+
To do so, you can use the interface of the application spun up during the step 207.
175
+
For instance, you can trigger a cache stress, which will also stress the NGINX service by simulating requests.
145
176
177
+
image::caching-demo.png[]
146
178
147
179
Looking into your application, you should be able to correlate the requests per second on your NGINX boxes with the autoscaling event and the creation of new replicas.
148
180
149
181
image::autoscalingdash.png[]
150
182
151
-
== Cleanup
183
+
In the above screenshot, we triggered 2 simulations, one at 12.30 and another one at 12.45.
184
+
You can see that as a result of the stress, an additional replica is spun up serving the requests.
185
+
The average request per second falls at ~27 request.
186
+
Finally, after a cooling down period, we downscale.
152
187
153
-
$ kubectl delete -f templates/
188
+
== Cleanup
154
189
190
+
```
191
+
$ kubectl delete -f templates
192
+
```
155
193
156
194
You are now ready to continue on with the workshop!
0 commit comments