mayastor-extensions icon indicating copy to clipboard operation
mayastor-extensions copied to clipboard

feat(callhome): add volume replica and state, pool, spdk managed disks and storage media metrics

Open datacore-vvarakantham opened this issue 11 months ago • 0 comments

Added volume replica and status metrics to callhome report

{
  "volumes":
      {
           "volume_replica_counts": {
              "one_replica": 1,
              "two_replicas": 4,
              "three_replicas": 0,
              "four_replicas": 0,
              "five_or_more_replicas": 0
           },
           "volume_state_counts": {
                "unknown": 0,
                "online": 5,
                "degraded": 0,
                "faulted": 0,
                "shutdown": 0
            }
     }
}

Added pool metrics per node to callhome report

"storage_nodes": {
    "nodes": {
      "node-1-153835": {
        "pools": [
          {
            "replicas": 0,
            "replicas_capacity": 0
          }
        ],
        "spdk_managed_disks_count": 1
      },
      "node-0-153835": {
        "pools": [
          {
            "replicas": 0,
            "replicas_capacity": 0
          }
        ],
        "spdk_managed_disks_count": 1
      }
    }
  },

Added spdk managed disks to callhome report

"spdk_managed_disks": {
    "disk_types": {
      "SSD": {
        "count": 2,
        "capacity": 21474836480
      }
    }
    

Added storage media metrics to callhome report

"storage_media": {
    "count": 9,
    "total_capacity_in_bytes": 526959770112,
    "disk_types": {
      "SSD": {
        "count": 6,
        "capacity": 523738546176
      },
      "Optical Drive": {
        "count": 3,
        "capacity": 3221223936
      }
    }
  },

Description

Motivation and Context

Regression

How Has This Been Tested?

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [ ] My code follows the code style of this project.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [ ] I have added unit tests to cover my changes.

datacore-vvarakantham avatar Mar 13 '24 10:03 datacore-vvarakantham