Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fargate workload "Pod CPU Utilization" metric under prebuilt container Insight dashboard shows no data when the deployment pod does not have resource request/limit specified #492

Open
vasim38 opened this issue Feb 14, 2023 · 0 comments

Comments

@vasim38
Copy link

vasim38 commented Feb 14, 2023

As per the implementation in [1] the "Pod CPU Utilization" metric for the fargate workload shows no data when the pod does not have resource request/limit specified.

However when the resource request/limit is specified, the "Pod CPU Utilization" uses the data received for the metric "pod_cpu_utilization_over_pod_limit" using ADOT collector.


apiVersion: v1
kind: Pod
metadata:
name: pod-with-resource-request-limit
namespace: default
labels:
app : pod-with-resource-request-limit
spec:
containers:
- name : test
image: nginx:1.14.2
resources:
requests:
cpu: "256m"
memory: "512Mi"
limits:
cpu: "512m"
memory: "1024Mi"


apiVersion: v1
kind: Pod
metadata:
name: pod-without-resource-request-limit
namespace: default
labels:
app : pod-without-resource-request-limit
spec:
containers:
- name : test
image: nginx:1.14.2

Validation :

kubectl exec -it pod-without-resource-request-limit sh
apt-get update -y
apt-get install sterss -y
stress --cpu 1 --timeout 300

kubectl exec -it pod-with-resource-request-limit sh
apt-get update -y
apt-get install sterss -y
stress --cpu 1 --timeout 300

The "Pod CPU Utilization" metric under prebuilt container Insight dashboard does not show data for the pod 'pod-without-resource-request-limit' but would show it for the pod 'pod-with-resource-request-limit'

If the above is expected, can you please confirm if there is a need to update the name for the metric "Pod CPU Utilization" when it uses the data from the "pod_cpu_utilization_over_pod_limit"

Appreciate the clarification here.

[1] https://aws-otel.github.io/docs/getting-started/container-insights/eks-fargate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant