kubernetes: Volume metrics exposed in /stats/summary not available in /metrics

Kubernetes Version: 1.3

On hitting http://node:10255/stats/summary I am able to see volume metrics like:

"volume": [
     {
      "availableBytes": 92852543488,
      "capacityBytes": 92852555776,
      "usedBytes": 12288,
      "name": "default-token-eb5uv"
     }
    ]

but the same metrics are not available when I hit http://node:10255/metrics.

Im under the assumption that all metrics are equally available on both endpoints. We use prometheus today to do our timeseries metric storage and because of this gap we are not able to see volume usage on prometheus.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 9
  • Comments: 30 (16 by maintainers)

Most upvoted comments

I am working on this feature, assign the issue to myself. Will send out a proposal soon.

I think after this PR #59170, you need to set up kube-state-metrics to get the metrics

Looks like PR #59170 about PVC only. But with /stats/summary you can get stats for all mounted volumes (including emptyDir, secrets, etc).

Hello, I can confirm that on 1.9.2 the volume stats from /stats/summary are still not available in the /metrics endpoint. Are there still plans to implement this?

Thanks!

/remove-lifecycle rotten

Hi @cofyc We added the PVC ref into volume metrics in 1.8 https://github.com/kubernetes/kubernetes/pull/51448 Now you should be able to see the information through /metrics endpoint. Please let us know if you have any issue with it. Thanks!