Skip to content

Commit

Permalink
fix: fetch few counters from ONTAP instead of UM api (#1793)
Browse files Browse the repository at this point in the history
* fix: fetch few counters from ONTAP instead of UM api
  • Loading branch information
Hardikl committed Mar 10, 2023
1 parent 4712ee4 commit dbdaae3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/rest/9.12.0/lun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ counters:
- space.used => size_used

plugins:
- MetricAgent:
compute_metric:
- size_used_percent PERCENT size_used size
- LabelAgent:
value_to_num:
- new_status state online online `0`
Expand Down
4 changes: 4 additions & 0 deletions conf/rest/9.12.0/volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ counters:
- space.snapshot.reserve_size => snapshot_reserve_size
- space.snapshot.reserve_percent => snapshot_reserve_percent
- space.snapshot.space_used_percent => snapshot_reserve_used_percent
- space.overwrite_reserve_used => overwrite_reserve_used
- space.overwrite_reserve => overwrite_reserve_total
- snapshot_count
- hidden_fields:
- space
Expand Down Expand Up @@ -71,6 +73,8 @@ plugins:
- MetricAgent:
compute_metric:
- inode_used_percent PERCENT inode_files_used inode_files_total
- snapshot_reserve_used SUBTRACT snapshot_reserve_size snapshot_reserve_available
- overwrite_reserve_available SUBTRACT overwrite_reserve_total overwrite_reserve_used
- LabelAgent:
exclude_equals:
- style `flexgroup_constituent`
Expand Down
3 changes: 3 additions & 0 deletions conf/zapi/cdot/9.8.0/lun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ counters:
- ^vserver => svm

plugins:
- MetricAgent:
compute_metric:
- size_used_percent PERCENT size_used size
- LabelAgent:
# metric label zapi_value rest_value `default_value`
value_to_num:
Expand Down
4 changes: 4 additions & 0 deletions conf/zapi/cdot/9.8.0/volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ counters:
- snapshot-reserve-size => snapshot_reserve_size
- 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

- volume-state-attributes:
- ^state
Expand All @@ -75,6 +77,8 @@ plugins:
- MetricAgent:
compute_metric:
- inode_used_percent PERCENT inode_files_used inode_files_total
- snapshot_reserve_used SUBTRACT snapshot_reserve_size snapshot_reserve_available
- overwrite_reserve_available SUBTRACT overwrite_reserve_total overwrite_reserve_used
- LabelAgent:
exclude_equals:
- style `flexgroup_constituent`
Expand Down

0 comments on commit dbdaae3

Please sign in to comment.