Skip to content

cAdvisor does not return CPU metrics for 1.4 #11199

@mwringe

Description

@mwringe

cAdvisor is returning empty cpu usage for origin 1.4 (built from master, commit ffdeb1b)

  "stats": [
   {
    "timestamp": "2016-10-03T15:53:03.359772024-04:00",
    "cpu": {
     "usage": {
      "total": 0,
      "user": 0,
      "system": 0
     },

Version

commit ffdeb1b

but I suspect this also affect the v1.4.0-alpha.0

In the v1.3.0 versions, cpu metrics are collected

Steps To Reproduce
  1. build origin from git master
  2. access the cAdvisor endpoint for container and verify that it has a zero value for cpu.

eg:
curl -k -H "Authorization: Bearer oc whoami -t" -X POST -d '{"num_stats":1}' https://127.0.0.1:10250/stats/${PROJECT_NAME}/${POD_NAME}/${POD_ID}/${CONTAINER_NAME}

Alternatively, install origin metrics (https://docs.openshift.org/latest/install_config/cluster_metrics.html) and verify that the cpu graphs are empty.

Current Result

cpu metrics are all zero

Expected Result

cpu metrics to not be zero

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions