Skip to content

Commit

Permalink
add Powerstore storage (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhilong-xu authored Jan 9, 2023
1 parent 2538007 commit e0290fd
Show file tree
Hide file tree
Showing 8 changed files with 3,051 additions and 1 deletion.
20 changes: 19 additions & 1 deletion delfin/common/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,12 @@ class DiskPhysicalType(object):
SSD_CARD = 'ssd-card'
SAS_FLASH_VP = 'sas-flash-vp'
HDD = 'hdd'
NVME_SSD = 'nvme-ssd'
UNKNOWN = 'unknown'

ALL = (
SATA, SAS, SSD, NL_SSD, FC, LUN, ATA, FLASH, VMDISK,
NL_SAS, SSD_CARD, SAS_FLASH_VP, HDD, UNKNOWN)
NL_SAS, SSD_CARD, SAS_FLASH_VP, HDD, NVME_SSD, UNKNOWN)


class DiskLogicalType(object):
Expand Down Expand Up @@ -495,6 +496,9 @@ class StorageMetric:
CACHE_HIT_RATIO = Metrics.CACHE_HIT_RATIO
READ_CACHE_HIT_RATIO = Metrics.READ_CACHE_HIT_RATIO
WRITE_CACHE_HIT_RATIO = Metrics.WRITE_CACHE_HIT_RATIO
IO_SIZE = Metrics.IO_SIZE
READ_IO_SIZE = Metrics.READ_IO_SIZE
WRITE_IO_SIZE = Metrics.WRITE_IO_SIZE


class StoragePoolMetric:
Expand All @@ -511,6 +515,9 @@ class StoragePoolMetric:
CACHE_HIT_RATIO = Metrics.CACHE_HIT_RATIO
READ_CACHE_HIT_RATIO = Metrics.READ_CACHE_HIT_RATIO
WRITE_CACHE_HIT_RATIO = Metrics.WRITE_CACHE_HIT_RATIO
IO_SIZE = Metrics.IO_SIZE
READ_IO_SIZE = Metrics.READ_IO_SIZE
WRITE_IO_SIZE = Metrics.WRITE_IO_SIZE


class VolumeMetric:
Expand Down Expand Up @@ -541,6 +548,14 @@ class ControllerMetric:
READ_THROUGHPUT = Metrics.READ_THROUGHPUT
WRITE_THROUGHPUT = Metrics.WRITE_THROUGHPUT
RESPONSE_TIME = Metrics.RESPONSE_TIME
READ_RESPONSE_TIME = Metrics.READ_RESPONSE_TIME
WRITE_RESPONSE_TIME = Metrics.WRITE_RESPONSE_TIME
CACHE_HIT_RATIO = Metrics.CACHE_HIT_RATIO
READ_CACHE_HIT_RATIO = Metrics.READ_CACHE_HIT_RATIO
WRITE_CACHE_HIT_RATIO = Metrics.WRITE_CACHE_HIT_RATIO
IO_SIZE = Metrics.IO_SIZE
READ_IO_SIZE = Metrics.READ_IO_SIZE
WRITE_IO_SIZE = Metrics.WRITE_IO_SIZE
CPU_USAGE = Metrics.CPU_USAGE


Expand All @@ -558,6 +573,9 @@ class PortMetric:
CACHE_HIT_RATIO = Metrics.CACHE_HIT_RATIO
READ_CACHE_HIT_RATIO = Metrics.READ_CACHE_HIT_RATIO
WRITE_CACHE_HIT_RATIO = Metrics.WRITE_CACHE_HIT_RATIO
IO_SIZE = Metrics.IO_SIZE
READ_IO_SIZE = Metrics.READ_IO_SIZE
WRITE_IO_SIZE = Metrics.WRITE_IO_SIZE


class DiskMetric:
Expand Down
Empty file.
Loading

0 comments on commit e0290fd

Please sign in to comment.