Replies: 1 comment
-
|
Does anyone know the answer? @dacort @binarymatt @indrekj @tmc |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have deployed opentelemetry-collector-contrib 0.139.0 to a Kubernetes cluster as a DaemonSet. The Kubernetes cluster is deployed on AWS EKS with a Node group of two EC2 Nodes. Kubernetes version is currently 1.34. The DaemonSet YAML of the collector(extracted using
kubectl get daemonset -o yaml):The otel collector uses this configuration put inside
otel-configConfigMap:I have a Grafana deployment on AWS with Prometheus, also using the AWS managed service. When I query metrics using Grafana for my cluster, I see two metrics:
container.cpu.usageandk8s.pod.cpu.usage. On this same Kubernetes cluster, I'm deploying a Python bot with Docker.I understand the difference between
container.cpu.usageandk8s.pod.cpu.usage, as a pod can contain multiple containers and a container name can belong to multiple pods(when new versions are deployed). For this particular Python bot deployment, its pod only has one container.I did an average query over the last month in Grafana by
k8s_container_nameandk8s_pod_namelabels for both metrics(k8s.pod.cpu.usageonly byk8s_pod_namesince it doesn't have ak8s_container_name). I see that in the last month, my Python bot had only one pod name for both metrics.Yet
container.cpu.usagereported 0.8 average value at one time in the last month, whilek8s.pod.cpu.usagemetric never reported more than 0.02 for any pod, including the previous Python bot pod, in the whole month.How can that be? How can
container.cpu.usagebe way bigger thank8s.pod.cpu.usage? Maybe I'm misunderstanding these two metrics?Here is the Python bot Kubernetes deployment file(got it through
kubectl get deploy -o yaml)This is the Dockerfile of the Python bot:
Beta Was this translation helpful? Give feedback.
All reactions