diff --git a/conf/rest/9.10.0/lock.yaml b/conf/rest/9.10.0/lock.yaml new file mode 100644 index 000000000..5844e3f0f --- /dev/null +++ b/conf/rest/9.10.0/lock.yaml @@ -0,0 +1,30 @@ +name: Lock +query: api/protocols/locks +object: lock + +counters: + - ^^uuid => uuid + - ^interface.name => lif + - ^node.name => node + - ^path => path + - ^state => state + - ^svm.name => svm + - ^volume.name => volume + +plugins: + - LabelAgent: + # metric label zapi_value rest_value `default_value` + value_to_num_regex: + - count 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 \ No newline at end of file diff --git a/conf/rest/default.yaml b/conf/rest/default.yaml index 7b1a6eb65..dc9c2f4b2 100644 --- a/conf/rest/default.yaml +++ b/conf/rest/default.yaml @@ -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 diff --git a/conf/zapi/cdot/9.8.0/lock.yaml b/conf/zapi/cdot/9.8.0/lock.yaml new file mode 100644 index 000000000..6bac24113 --- /dev/null +++ b/conf/zapi/cdot/9.8.0/lock.yaml @@ -0,0 +1,34 @@ +name: Lock +query: lock-get-iter +object: lock + +counters: + lock-info: + - ^^lockid => uuid + - ^lif => lif + - ^lock-state => state + - ^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 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 + diff --git a/conf/zapi/default.yaml b/conf/zapi/default.yaml index bfaf56dcc..86e87dd7d 100644 --- a/conf/zapi/default.yaml +++ b/conf/zapi/default.yaml @@ -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