Skip to content

Commit

Permalink
updates for enhanced container insights (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadpatel authored Oct 3, 2023
1 parent a9d75d1 commit 2eeceba
Show file tree
Hide file tree
Showing 42 changed files with 102 additions and 84 deletions.
4 changes: 2 additions & 2 deletions container-insights-manifest-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ cd "$(dirname "$0")"
k8sDirPrefix="./k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring"
ecsDirPrefix="./ecs-task-definition-templates/deployment-mode/daemon-service/cwagent-ecs-instance-metric"

newK8sVersion="k8s/1.3.16"
agentVersion="public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247360.0b252689"
newK8sVersion="k8s/1.3.17"
agentVersion="public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210"
fluentdVersion="fluent/fluentd-kubernetes-daemonset:v1.10.3-debian-cloudwatch-1.0"
fluentBitVersion="public.ecr.aws/aws-observability/aws-for-fluent-bit:stable"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"ContainerDefinitions": [
{
"Name": "cloudwatch-agent",
"Image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247360.0b252689",
"Image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"MountPoints": [
{
"ReadOnly": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"containerDefinitions": [
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247360.0b252689",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"mountPoints": [
{
"readOnly": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Resources:
NetworkMode: awsvpc
ContainerDefinitions:
- Name: cloudwatch-agent-prometheus
Image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247360.0b252689
Image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210
Essential: true
MountPoints: []
PortMappings: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Resources:
NetworkMode: !Ref ECSNetworkMode
ContainerDefinitions:
- Name: cloudwatch-agent-prometheus
Image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247360.0b252689
Image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210
Essential: true
MountPoints: []
PortMappings: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"containerDefinitions": [
{
"name": "cloudwatch-agent-prometheus",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247360.0b252689",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"essential": true,
"mountPoints": [
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210",
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ rules:
resources: ["pods", "nodes", "endpoints"]
verbs: ["list", "watch"]
- apiGroups: ["apps"]
resources: ["replicasets"]
resources: ["replicasets", "daemonsets", "deployments"]
verbs: ["list", "watch"]
- apiGroups: ["batch"]
resources: ["jobs"]
Expand All @@ -39,6 +39,8 @@ rules:
resources: ["configmaps"]
resourceNames: ["cwagent-clusterleader"]
verbs: ["get","update"]
- nonResourceURLs: ["/metrics"]
verbs: ["get", "list", "watch"]

---
kind: ClusterRoleBinding
Expand Down Expand Up @@ -71,7 +73,8 @@ data:
"metrics_collected": {
"kubernetes": {
"cluster_name": "{{cluster_name}}",
"metrics_collection_interval": 60
"metrics_collection_interval": 60,
"enhanced_container_insights": true
},
"emf": {}
},
Expand Down Expand Up @@ -113,7 +116,7 @@ spec:
spec:
containers:
- name: cloudwatch-agent
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210
ports:
- containerPort: 8125
hostPort: 8125
Expand All @@ -126,11 +129,11 @@ spec:
protocol: UDP
resources:
limits:
cpu: 200m
memory: 200Mi
cpu: 400m
memory: 400Mi
requests:
cpu: 200m
memory: 200Mi
cpu: 400m
memory: 400Mi
# Please don't change below envs
env:
- name: HOST_IP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ data:
"metrics_collected": {
"kubernetes": {
"cluster_name": "{{cluster_name}}",
"metrics_collection_interval": 60
"metrics_collection_interval": 60,
"enhanced_container_insights": true
}
},
"force_flush_interval": 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ spec:
spec:
containers:
- name: cloudwatch-agent
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247360.0b252689
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210
#ports:
# - containerPort: 8125
# hostPort: 8125
# protocol: UDP
resources:
limits:
cpu: 200m
memory: 200Mi
cpu: 400m
memory: 400Mi
requests:
cpu: 200m
memory: 200Mi
cpu: 400m
memory: 400Mi
# Please don't change below envs
env:
- name: HOST_IP
Expand All @@ -42,7 +42,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: CI_VERSION
value: "k8s/1.3.16"
value: "k8s/1.3.17"
# Please don't change the mountPath
volumeMounts:
- name: cwagentconfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rules:
resources: ["pods", "nodes", "endpoints"]
verbs: ["list", "watch"]
- apiGroups: ["apps"]
resources: ["replicasets"]
resources: ["replicasets", "daemonsets", "deployments"]
verbs: ["list", "watch"]
- apiGroups: ["batch"]
resources: ["jobs"]
Expand All @@ -30,6 +30,8 @@ rules:
resources: ["configmaps"]
resourceNames: ["cwagent-clusterleader"]
verbs: ["get","update"]
- nonResourceURLs: ["/metrics"]
verbs: ["get", "list", "watch"]

---
kind: ClusterRoleBinding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ spec:
fieldRef:
fieldPath: spec.nodeName
- name: CI_VERSION
value: "k8s/1.3.16"
value: "k8s/1.3.17"
resources:
limits:
memory: 200Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ spec:
apiVersion: v1
fieldPath: metadata.name
- name: CI_VERSION
value: "k8s/1.3.16"
value: "k8s/1.3.17"
resources:
limits:
memory: 200Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ spec:
name: cluster-info
key: cluster.name
- name: CI_VERSION
value: "k8s/1.3.16"
value: "k8s/1.3.17"
- name: FLUENT_CONTAINER_TAIL_PARSER_TYPE
value: /^(?<time>.+) (?<stream>stdout|stderr) (?<logtag>[FP]) (?<log>.*)$/
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ rules:
resources: ["pods", "nodes", "endpoints"]
verbs: ["list", "watch"]
- apiGroups: ["apps"]
resources: ["replicasets"]
resources: ["replicasets", "daemonsets", "deployments"]
verbs: ["list", "watch"]
- apiGroups: ["batch"]
resources: ["jobs"]
Expand All @@ -39,6 +39,8 @@ rules:
resources: ["configmaps"]
resourceNames: ["cwagent-clusterleader"]
verbs: ["get","update"]
- nonResourceURLs: ["/metrics"]
verbs: ["get", "list", "watch"]

---
kind: ClusterRoleBinding
Expand Down Expand Up @@ -69,7 +71,8 @@ data:
"metrics_collected": {
"kubernetes": {
"cluster_name": "{{cluster_name}}",
"metrics_collection_interval": 60
"metrics_collection_interval": 60,
"enhanced_container_insights": true
}
},
"force_flush_interval": 5
Expand Down Expand Up @@ -98,18 +101,18 @@ spec:
spec:
containers:
- name: cloudwatch-agent
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247360.0b252689
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300028.1b210
#ports:
# - containerPort: 8125
# hostPort: 8125
# protocol: UDP
resources:
limits:
cpu: 200m
memory: 200Mi
cpu: 400m
memory: 400Mi
requests:
cpu: 200m
memory: 200Mi
cpu: 400m
memory: 400Mi
# Please don't change below envs
env:
- name: HOST_IP
Expand All @@ -125,7 +128,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: CI_VERSION
value: "k8s/1.3.16"
value: "k8s/1.3.17"
# Please don't change the mountPath
volumeMounts:
- name: cwagentconfig
Expand Down Expand Up @@ -501,7 +504,7 @@ spec:
apiVersion: v1
fieldPath: metadata.name
- name: CI_VERSION
value: "k8s/1.3.16"
value: "k8s/1.3.17"
resources:
limits:
memory: 200Mi
Expand Down
Loading

0 comments on commit 2eeceba

Please sign in to comment.