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
text: "Monitor Amazon EKS on AWS Fargate with Datadog"
18
28
---
19
29
20
30
## Overview
@@ -23,37 +33,35 @@ Amazon EKS on AWS Fargate is a managed Kubernetes service that automates certain
23
33
24
34
## Setup
25
35
26
-
These steps cover the setup of the Datadog Agent in a container within Amazon EKS on AWS Fargate where you run the Agent as a sidecar of your application pod with custom RBAC.
36
+
These steps cover the setup of the Datadog Agent in a container within Amazon EKS on AWS Fargate. Refer to the [Datadog-Amazon EKS integration documentation][1] if you are not using AWS Fargate.
27
37
28
-
AWS Fargate nodes are not physical nodes, which means they exclude [host-based system-checks][1], like CPU, memory, etc.
29
-
30
-
Running the Agent as a sidecar of your application pod with custom RBAC enables these features:
38
+
AWS Fargate pods are not physical pod, which means they exclude [host-based system-checks][2], like CPU, memory, etc. In order to collect data from your AWS Fargate pods, you must run the Agent as a sidecar of your application pod with custom RBAC, which enables these features:
31
39
32
40
* Kubernetes metrics collection from the pod running your application containers and the Agent
33
-
*[Autodiscovery][2]
41
+
*[Autodiscovery][3]
34
42
* Configuration of custom Agent Checks to target containers in the same pod
35
43
* APM and DogStatsD for containers in the same pod
36
44
37
-
### EC2 Node
45
+
### EC2 Node
38
46
39
-
EKS on Fargate allows users to create node groups that use classical EC2 machines, like for the standard EKS setup. This works by running the Agent as an EC2-type workload. The Agent setup is the same as that of the [Kuberenetes Agent setup][3], and all options are available. To deploy the Agent on EC2 nodes, use the [DaemonSet setup for the Datadog Agent][4].
47
+
If you don't specify through [AWS Fargate Profile][4] that your pods should run on fargate, your pods can use classical EC2 machines. If it's the case refer to the [Datadog-Amazon EKS integration setup][5] in order to collect data from your them. This works by running the Agent as an EC2-type workload. The Agent setup is the same as that of the [Kuberenetes Agent setup][6], and all options are available. To deploy the Agent on EC2 nodes, use the [DaemonSet setup for the Datadog Agent][7].
40
48
41
49
### Installation
42
50
43
-
To get the best observability coverage monitoring workloads in AWS EKS Fargate, set up the Datadog integrations for:
44
-
45
-
*[Kubernetes][5]
46
-
*[AWS][6]
47
-
*[EC2][7] (if you are running an EC2 pod)
51
+
To get the best observability coverage monitoring workloads in AWS EKS Fargate, install the Datadog integrations for:
48
52
53
+
*[Kubernetes][8]
54
+
*[AWS][9]
55
+
*[EKS][10]
56
+
*[EC2][11] (if you are running an EC2-type node)
49
57
50
-
Also, set up integrations for any other AWS services you are running with EKS (for example, [ELB][5]).
58
+
Also, set up integrations for any other AWS services you are running with EKS (for example, [ELB][12]).
51
59
52
60
#### Manual Installation
53
61
54
62
To install, download the custom Agent image: `datadog/agent:eks-fargate-beta`.
55
63
56
-
If the Agent is running as a sidecar, it can communicate only with containers on the same pod. Run an Agent for every pod you wish to monitor.
64
+
If the Agent is running as a sidecar, it can communicate only with containers on the same pod. Run an Agent for every pod you wish to monitor.
57
65
58
66
### Configuration
59
67
@@ -62,7 +70,7 @@ To collect data from your applications running in AWS EKS Fargate over a Fargate
62
70
*[Set up AWS EKS Fargate RBAC rules](#aws-eks-fargate-rbac).
63
71
*[Deploy the Agent as a sidecar](#running-the-agent-as-a-side-car).
64
72
* Set up Datadog [metrics](#metrics-collection), [events](#events-collection), and [traces](#traces-collection) collection.
65
-
73
+
66
74
#### AWS EKS Fargate RBAC
67
75
68
76
Use the following Agent RBAC when deploying the Agent as a sidecar in AWS EKS Fargate:
@@ -108,7 +116,7 @@ metadata:
108
116
109
117
#### Running the Agent as a sidecar
110
118
111
-
To start collecting data from your pod, deploy the Datadog Agent as a sidecar of your application. This is the minimum configuration required to collect metrics from your application running in the pod:
119
+
To start collecting data from your Fargate type pod, deploy the Datadog Agent as a sidecar of your application. This is the minimum configuration required to collect metrics from your application running in the pod:
112
120
113
121
```yaml
114
122
apiVersion: apps/v1
@@ -156,7 +164,7 @@ spec:
156
164
cpu: "200m"
157
165
```
158
166
159
-
**Note**: Don't forget to replace `<YOUR_DATADOG_API_KEY>` with the [Datadog API key from your organization][8].
167
+
**Note**: Don't forget to replace `<YOUR_DATADOG_API_KEY>` with the [Datadog API key from your organization][13].
160
168
161
169
## Metrics Collection
162
170
@@ -289,7 +297,7 @@ spec:
289
297
290
298
## Traces Collection
291
299
292
-
Set up the container port `8126` over your Agent container to collect traces from your application container. [Read more about how to set up tracing][9].
300
+
Set up the container port `8126` over your Agent container to collect traces from your application container. [Read more about how to set up tracing][14].
293
301
294
302
295
303
```yaml
@@ -345,33 +353,41 @@ spec:
345
353
cpu: "200m"
346
354
```
347
355
348
-
**Note**: Don't forget to replace `<YOUR_DATADOG_API_KEY>` with the [Datadog API key from your organization][8].
356
+
**Note**: Don't forget to replace `<YOUR_DATADOG_API_KEY>` with the [Datadog API key from your organization][13].
349
357
350
358
## Events Collection
351
359
352
360
To collect events from your AWS EKS Fargate API server, run a Datadog Cluster Agent over an AWS EKS EC2 pod within your Kubernetes cluster:
353
361
354
-
1. [Setup the Datadog Cluster Agent][10].
355
-
2. [Enable Event collection for your Cluster Agent][11].
362
+
1. [Setup the Datadog Cluster Agent][15].
363
+
2. [Enable Event collection for your Cluster Agent][16].
356
364
357
365
Optionally, deploy cluster check runners in addition to setting up the Datadog Cluster Agent to enable cluster checks.
358
366
359
367
**Note**: You can also collect events if you run the Datadog Cluster Agent in a pod in Fargate.
0 commit comments