google / cadvisor

Analyzes resource usage and performance characteristics of running containers.
Other
17.14k stars 2.32k forks source link

Missing container label in container_memory_working_set_bytes #3181

Open strongme opened 2 years ago

strongme commented 2 years ago

Missing container label in metric container_memory_working_set_bytes:

container_memory_working_set_bytes{
beta_kubernetes_io_arch="amd64", 
beta_kubernetes_io_os="linux", 
id="/kubepods/kubepods/burstable/pod7795cf5d-c2cd-4fb8-ad30-f5b0d9e2b642", 
instance="docker-desktop", 
job="kubernetes-nodes-cadvisor", 
kubernetes_io_arch="amd64", 
kubernetes_io_hostname="docker-desktop", 
kubernetes_io_os="linux", 
namespace="demo", 
new_label="awesome", 
pod="spring-boot-k8s-5fb56bc4df-q7pfk"
}

Did i miss something? but most of them are default configuration.

kubectl version --short

Client Version: v1.25.2
Kustomize Version: v4.5.7
Server Version: v1.25.0

linkerd version

Client version: stable-2.12.1
Server version: stable-2.12.1

docker version

Client:
 Cloud integration: v1.0.29
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:04:45 2022
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.12.0 (85629)
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:01:23 2022
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          1.6.8
  GitCommit:        9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
uhhhh2 commented 2 years ago

Some relabelings that might help:

https://github.com/rancher/rancher/issues/38934#issuecomment-1294585708