Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-11055

Retrieve total disk capacity from API

XMLWordPrintable

    • Retrieve total disk capacity from API
    • False
    • Hide

      None

      Show
      None
    • False
    • RHOSSTRAT-641Enhance metrics collected by RHOSO
    • Not Selected
    • ?
    • ?
    • Done
    • RHOSSTRAT-641 - Enhance metrics collected by RHOSO
    • ?
    • rhos-conplat-observability
    • ?
    • 0% To Do, 0% In Progress, 100% Done

      We need to retrieve the total capacity of the backend devices per pool, like this:

      • ceilometer_volume_total_capacity{pool="pool1"}
      • ceilometer_volume_used_capacity{pool="pool1"}
      • (ceilometer_volume_used_capacity / ceilometer_volume_total_capacity) * 100

      ceilometer-central-agent could retrieve the total capacity of all pools by using the API endpoint: /v3/{project_id}/scheduler-stats/get_pools (https://docs.openstack.org/api-ref/block-storage/v3/#list-all-back-end-storage-pools). That lists the total capacity and the used capacity of all the pools managed by Cinder. The "project_id" parameter of the request does nothing, and it always return the full capacity of pools.

      NOTE: this is currently being reported via notification, but it might be better to retrieve it via API

       

              rh-ee-jwysogla Jaromir Wysoglad
              rhn-engineering-jlarriba Juan Larriba
              rhos-conplat-observability
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: