Skip to content

Commit

Permalink
feat: Harvest should handle lun and namespace metrics with simple names
Browse files Browse the repository at this point in the history
Fixes: #2921
  • Loading branch information
cgrinds committed Jun 17, 2024
1 parent 5ae91b7 commit e08dbff
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 60 deletions.
4 changes: 3 additions & 1 deletion conf/rest/9.12.0/lun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ plugins:
- LabelAgent:
value_to_num:
- new_status state online online `0`
# There are two flavors of path names
# There are three flavors of path names
# /vol/volName/lunName
# /vol/volName/lun401/lunName
# /lunName
split_regex:
- path `^/[^/]+/([^/]+)(?:/.*?|)/([^/]+)$` volume,lun
- path `^([^/]+)$` lun

export_options:
instance_keys:
Expand Down
1 change: 1 addition & 0 deletions conf/restperf/9.12.0/lun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ plugins:
#Example: /vol/osc_iscsi_vol01/osc_iscsi_vol01:d32abf06-0327-4d06-bb9d-1c19c8eeea01
split_regex:
- lunfull `^/[^/]*/([^/]*)/?.*\/([^/:]*):` volume,lun
- lunfull `^([^/:]+).*?$` lun

export_options:
instance_keys:
Expand Down
Loading

0 comments on commit e08dbff

Please sign in to comment.