Replies: 4 comments 6 replies
-
hi @jmg011 it will probably require plugin changes because these objects often require correlating multiple ZAPI/REST calls since a single API doesn't exist with all the information. But first, let's talk details. When I run
Can you outline which metrics from this output you want included? |
Beta Was this translation helpful? Give feedback.
-
@cgrinds Thanks for a super quick response on this. Below metadata, all fields as labels and status as a metric would be helpful if included in the plugin. That way, we have all the metrics for qtrees. vserver |
Beta Was this translation helpful? Give feedback.
-
I have evaluated the above given field list (from Out of the given field list, Collection via REST waySteps to monitor all the mentioned fields via REST are as below.
objects:
Qtree: custom_qtree.yaml
name: Qtree
query: api/storage/qtrees
object: qtree
counters:
- ^^svm.name => svm
- ^^volume.name => volume
- ^^name => qtree
- ^export_policy.name => export_policy
- ^security_style => security_style
- ^unix_permissions => unix_permissions
- ^qos_policy.name => qos_policy_group
- id => id
- filter:
- name=!""
endpoints:
- query: api/private/cli/qtree
counters:
- ^^vserver => svm
- ^^volume => volume
- ^^qtree => qtree
- ^status => status
- ^oplock_mode => oplocks
- ^qtree_path => qtree_path
- ^user => user_name
- ^group => group_name
- ^is_export_policy_inherited => is_export_policy_inherited
- filter:
- qtree=!""
plugins:
- Qtree
- LabelAgent:
replace:
- oplocks oplocks `enable` `enabled`
export_options:
instance_keys:
- qtree
- volume
- svm
instance_labels:
- export_policy
- security_style
- status
- oplocks
- qtree_path
- user_id
- user_name
- group_id
- group_name
- unix_permissions
- qos_policy_group
- is_export_policy_inherited
Just for reference, status value could be only "normal" or "readonly". Note: In Harvest upgrade, REST collector would be disabled by default. You would need to enable again after upgrade to collect the qtree metrics via REST. Collection via ZAPI waySteps to monitor available fields via ZAPI are as below.
objects:
Qtree: custom_qtree.yaml
counters:
qtree-info:
- ^mode => unix_permissions
- ^is-export-policy-inherited => is_export_policy_inherited
- ^qos-policy-group => qos_policy_group
export_options:
instance_labels:
- unix_permissions
- is_export_policy_inherited
- qos_policy_group
Just for reference, status value could be only "normal" or "readonly". |
Beta Was this translation helpful? Give feedback.
-
@Hardikl - This is perfect. Let me try this in my dev env and get back if I notice any issues. We are still using ZAPI for all collections, so adding REST needs to be tested. I will test it as I have already started testing REST API because we need to move to it at some point. Do you know when ZAPI support is ending? Are there any known issues for ZAPI between different ONTAP versions? |
Beta Was this translation helpful? Give feedback.
-
Hi! Currently we see tree quotas from "qtree report" in qtree* metrics. I'm curious if there is a plan to add other qtree metrics from "qtree show" command output.
Is it something I can build with templates without having to update any plugins for qtree?
Beta Was this translation helpful? Give feedback.
All reactions