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 2 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
43 changes: 43 additions & 0 deletions conf/zapi/cdot/9.8.0/lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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 => vserver

collect_only_labels: true

plugins:
- LabelAgent:
# metric label zapi_value rest_value `default_value`
value_to_num_regex:
- new_status lock_state .* .* `0`
Hardikl marked this conversation as resolved.
Show resolved Hide resolved
- 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
- vserver
- lif
- volume

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

export_options:
instance_keys:
- lockid
instance_labels:
- lif
- node
- path
- volume
- vserver
Hardikl marked this conversation as resolved.
Show resolved Hide resolved
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
Hardikl marked this conversation as resolved.
Show resolved Hide resolved
Hardikl marked this conversation as resolved.
Show resolved Hide resolved
Lun: lun.yaml
# NetPort: netport.yaml
Namespace: namespace.yaml
Expand Down
Loading