Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adding zapi/rest templates for lock-get-iter & protocols/locks #2706

Merged
merged 6 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions conf/rest/9.10.0/lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lock
query: api/protocols/locks
object: lock

counters:
- ^^uuid => uuid
- ^interface.name => lif
- ^node.name => node
- ^path => path
- ^state => lock_state
Hardikl marked this conversation as resolved.
Show resolved Hide resolved
- ^svm.name => svm
- ^volume.name => volume

plugins:
- LabelAgent:
# metric label zapi_value rest_value `default_value`
value_to_num_regex:
- count lock_state .* .* `0`
- Aggregator:
# plugin will create summary/average for each object
# any names after the object names will be treated as
# label names that will be added to instances
- node
- svm
- lif
- volume

# only export node/aggr aggregations from plugin
# set this true or comment, to get data for each lock
export_data: false
1 change: 1 addition & 0 deletions conf/rest/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ objects:
FlexCache: flexcache.yaml
FCP: fcp.yaml
LIF: lif.yaml
# Lock: lock.yaml
Health: health.yaml
Lun: lun.yaml
MetroclusterCheck: metrocluster_check.yaml
Expand Down
34 changes: 34 additions & 0 deletions conf/zapi/cdot/9.8.0/lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lock
Hardikl marked this conversation as resolved.
Show resolved Hide resolved
query: lock-get-iter
object: lock

counters:
lock-info:
- ^^lockid => lockid
Hardikl marked this conversation as resolved.
Show resolved Hide resolved
- ^lif => lif
- ^lock-state => lock_state
Hardikl marked this conversation as resolved.
Show resolved Hide resolved
- ^node => node
- ^path => path
- ^volume => volume
- ^vserver => svm

collect_only_labels: true

plugins:
- LabelAgent:
# metric label zapi_value rest_value `default_value`
value_to_num_regex:
- count lock_state .* .* `0`
- Aggregator:
# plugin will create summary/average for each object
# any names after the object names will be treated as
# label names that will be added to instances
- node
- svm
- lif
- volume

# only export node/aggr aggregations from plugin
# set this true or comment, to get data for each lock
export_data: false

1 change: 1 addition & 0 deletions conf/zapi/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ objects:
EmsDestination: ems_destination.yaml
FlexCache: flexcache.yaml
LIF: lif.yaml
# Lock: lock.yaml
Lun: lun.yaml
# NetPort: netport.yaml
Namespace: namespace.yaml
Expand Down
Loading