Skip to content

Commit

Permalink
feat: add inactive data metrics for aggregate and volume (#3003)
Browse files Browse the repository at this point in the history
* feat: add inactive data metrics for aggregate and volume
  • Loading branch information
rahulguptajss authored Jun 21, 2024
1 parent 3588218 commit cc727a9
Show file tree
Hide file tree
Showing 7 changed files with 909 additions and 156 deletions.
11 changes: 9 additions & 2 deletions conf/rest/9.11.0/aggr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ query: api/storage/aggregates
object: aggr

counters:
- ^^uuid => uuid
- ^^name => aggr
- ^block_storage.primary.disk_type => type
- ^block_storage.primary.raid_type => raid_type
- ^cloud_storage.stores.#.cloud_store.name => cloud_stores
- ^data_encryption.software_encryption_enabled => is_encrypted
- ^home_node.name => node
- ^name => aggr
- ^state => state
- ^uuid => uuid
- block_storage.hybrid_cache.size => hybrid_cache_size_total
- block_storage.plexes.# => raid_plex_count
- block_storage.primary.disk_count => primary_disk_count
Expand Down Expand Up @@ -51,6 +51,13 @@ counters:
- hidden_fields:
- space

endpoints:
- query: api/private/cli/aggr/show-space
counters:
- ^^aggregate_name => aggr
- object_store_logical_used => object_store_logical_used
- object_store_physical_used => object_store_physical_used

plugins:
- LabelAgent:
value_to_num:
Expand Down
11 changes: 9 additions & 2 deletions conf/rest/9.12.0/aggr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ query: api/storage/aggregates
object: aggr

counters:
- ^^uuid => uuid
- ^^name => aggr
- ^block_storage.primary.disk_type => type
- ^block_storage.primary.raid_type => raid_type
- ^cloud_storage.stores.#.cloud_store.name => cloud_stores
- ^data_encryption.software_encryption_enabled => is_encrypted
- ^home_node.name => node
- ^name => aggr
- ^state => state
- ^uuid => uuid
- block_storage.hybrid_cache.disk_count => hybrid_disk_count
- block_storage.hybrid_cache.size => hybrid_cache_size_total
- block_storage.plexes.# => raid_plex_count
Expand Down Expand Up @@ -63,6 +63,13 @@ counters:
- block_storage
- space

endpoints:
- query: api/private/cli/aggr/show-space
counters:
- ^^aggregate_name => aggr
- object_store_logical_used => object_store_logical_used
- object_store_physical_used => object_store_physical_used

plugins:
- LabelAgent:
value_to_num:
Expand Down
2 changes: 2 additions & 0 deletions conf/rest/9.12.0/volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ counters:
- overwrite_reserve_used => overwrite_reserve_used
- percent_snapshot_space => snapshot_reserve_percent
- percent_used => size_used_percent
- performance_tier_inactive_user_data => space_performance_tier_inactive_user_data
- performance_tier_inactive_user_data_percent => space_performance_tier_inactive_user_data_percent
- physical_used => space_physical_used
- physical_used_percent => space_physical_used_percent
- sis_space_saved => sis_total_saved
Expand Down
72 changes: 37 additions & 35 deletions conf/zapi/cdot/9.8.0/volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,65 +7,67 @@ client_timeout: 2m

counters:
volume-attributes:
- ^encrypt => isEncrypted
- ^encrypt => isEncrypted
- volume-autosize-attributes:
- grow-threshold-percent
- maximum-size
- volume-id-attributes:
- ^^instance-uuid => uuid
- ^containing-aggregate-uuid => aggrUuid
- ^junction-path => junction_path
- ^name => volume
- ^owning-vserver-name => svm
- ^style-extended => style
- ^type => type
- ^^instance-uuid => uuid
- ^containing-aggregate-uuid => aggrUuid
- ^junction-path => junction_path
- ^name => volume
- ^owning-vserver-name => svm
- ^style-extended => style
- ^type => type
- aggr-list:
- ^aggr-name => aggr
- ^aggr-name => aggr
- nodes:
- ^node-name => node
- ^node-name => node
- volume-inode-attributes:
- files-total
- files-used
- volume-sis-attributes:
- ^is-sis-volume => is_sis_volume
- compression-space-saved => sis_compress_saved
- deduplication-space-saved => sis_dedup_saved
- percentage-compression-space-saved => sis_compress_saved_percent
- percentage-deduplication-space-saved => sis_dedup_saved_percent
- percentage-total-space-saved => sis_total_saved_percent
- total-space-saved => sis_total_saved
- ^is-sis-volume => is_sis_volume
- compression-space-saved => sis_compress_saved
- deduplication-space-saved => sis_dedup_saved
- percentage-compression-space-saved => sis_compress_saved_percent
- percentage-deduplication-space-saved => sis_dedup_saved_percent
- percentage-total-space-saved => sis_total_saved_percent
- total-space-saved => sis_total_saved
- volume-snapshot-attributes:
- ^auto-snapshots-enabled => auto_snapshots_enabled
- ^auto-snapshots-enabled => auto_snapshots_enabled
- ^snapshot-policy
- snapshot-count
- volume-snapshot-autodelete-attributes:
- ^is-autodelete-enabled => snapshot_autodelete
- ^is-autodelete-enabled => snapshot_autodelete
- volume-space-attributes:
- expected-available
- filesystem-size => filesystem_size
- filesystem-size => filesystem_size
- logical-available
- logical-used
- logical-used-by-afs
- logical-used-by-snapshots
- logical-used-percent
- overwrite-reserve => overwrite_reserve_total
- overwrite-reserve-used => overwrite_reserve_used
- percentage-size-used => size_used_percent
- percentage-snapshot-reserve => snapshot_reserve_percent
- percentage-snapshot-reserve-used => snapshot_reserve_used_percent
- overwrite-reserve => overwrite_reserve_total
- overwrite-reserve-used => overwrite_reserve_used
- percentage-size-used => size_used_percent
- percentage-snapshot-reserve => snapshot_reserve_percent
- percentage-snapshot-reserve-used => snapshot_reserve_used_percent
- performance-tier-inactive-user-data => space_performance_tier_inactive_user_data
- performance-tier-inactive-user-data-percent => space_performance_tier_inactive_user_data_percent
- physical-used
- physical-used-percent
- size => size
- size-available => size_available
- size-available-for-snapshots => snapshots_size_available
- size-total => size_total
- size-used => size_used
- size-used-by-snapshots => snapshots_size_used
- snapshot-reserve-available => snapshot_reserve_available
- snapshot-reserve-size => snapshot_reserve_size
- size => size
- size-available => size_available
- size-available-for-snapshots => snapshots_size_available
- size-total => size_total
- size-used => size_used
- size-used-by-snapshots => snapshots_size_used
- snapshot-reserve-available => snapshot_reserve_available
- snapshot-reserve-size => snapshot_reserve_size
- volume-state-attributes:
- ^is-node-root => node_root
- ^is-vserver-root => svm_root
- ^is-node-root => node_root
- ^is-vserver-root => svm_root
- ^state
- ^status

Expand Down
Loading

0 comments on commit cc727a9

Please sign in to comment.