Skip to content
New issue

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

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

Already on GitHub? # to your account

feat(stats): adding volume stats #27

Merged
merged 2 commits into from
Dec 30, 2019
Merged

Conversation

pawanpraka1
Copy link
Contributor

@pawanpraka1 pawanpraka1 commented Dec 17, 2019

$ curl localhost:10255/metrics | grep volume_stats

# TYPE kubelet_volume_stats_available_bytes gauge
kubelet_volume_stats_available_bytes{namespace="default",persistentvolumeclaim="csi-zfspv"} 3.053129728e+09
kubelet_volume_stats_available_bytes{namespace="default",persistentvolumeclaim="csi-zfspv1"} 4.294836224e+09
# HELP kubelet_volume_stats_capacity_bytes Capacity in bytes of the volume
# TYPE kubelet_volume_stats_capacity_bytes gauge
kubelet_volume_stats_capacity_bytes{namespace="default",persistentvolumeclaim="csi-zfspv"} 4.160421888e+09
kubelet_volume_stats_capacity_bytes{namespace="default",persistentvolumeclaim="csi-zfspv1"} 4.294967296e+09
# HELP kubelet_volume_stats_inodes Maximum number of inodes in the volume
# TYPE kubelet_volume_stats_inodes gauge
kubelet_volume_stats_inodes{namespace="default",persistentvolumeclaim="csi-zfspv"} 262144
kubelet_volume_stats_inodes{namespace="default",persistentvolumeclaim="csi-zfspv1"} 8.388422e+06
# HELP kubelet_volume_stats_inodes_free Number of free inodes in the volume
# TYPE kubelet_volume_stats_inodes_free gauge
kubelet_volume_stats_inodes_free{namespace="default",persistentvolumeclaim="csi-zfspv"} 262132
kubelet_volume_stats_inodes_free{namespace="default",persistentvolumeclaim="csi-zfspv1"} 8.388416e+06
# HELP kubelet_volume_stats_inodes_used Number of used inodes in the volume
# TYPE kubelet_volume_stats_inodes_used gauge
kubelet_volume_stats_inodes_used{namespace="default",persistentvolumeclaim="csi-zfspv"} 12
kubelet_volume_stats_inodes_used{namespace="default",persistentvolumeclaim="csi-zfspv1"} 6
# HELP kubelet_volume_stats_used_bytes Number of used bytes in the volume
# TYPE kubelet_volume_stats_used_bytes gauge
kubelet_volume_stats_used_bytes{namespace="default",persistentvolumeclaim="csi-zfspv"} 1.090514944e+09
kubelet_volume_stats_used_bytes{namespace="default",persistentvolumeclaim="csi-zfspv1"} 131072


$ curl localhost:10255/stats/summary
---
     {
      "time": "2019-12-18T09:52:26Z",
      "availableBytes": 4294836224,
      "capacityBytes": 4294967296,
      "usedBytes": 131072,
      "inodesFree": 8388416,
      "inodes": 8388422,
      "inodesUsed": 6,
      "name": "fio-vol",
      "pvcRef": {
       "name": "csi-zfspv1",
       "namespace": "default"
      }
---

Signed-off-by: Pawan pawan@mayadata.io

@codecov-io
Copy link

codecov-io commented Dec 17, 2019

Codecov Report

Merging #27 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #27   +/-   ##
=======================================
  Coverage   83.33%   83.33%           
=======================================
  Files           1        1           
  Lines          72       72           
=======================================
  Hits           60       60           
  Misses         12       12

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 72bc0b0...d3c9015. Read the comment docs.

@pawanpraka1 pawanpraka1 force-pushed the volstats branch 2 times, most recently from 1dd02b9 to 431c803 Compare December 18, 2019 10:05
@pawanpraka1 pawanpraka1 changed the title [WIP] feat(stats): adding volume stats feat(stats): adding volume stats Dec 18, 2019
@pawanpraka1 pawanpraka1 requested a review from kmova December 18, 2019 10:10
Signed-off-by: Pawan <pawan@mayadata.io>
Signed-off-by: Pawan <pawan@mayadata.io>
@kmova kmova merged commit 820d080 into openebs:master Dec 30, 2019
@pawanpraka1 pawanpraka1 deleted the volstats branch December 31, 2019 06:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants