-
Notifications
You must be signed in to change notification settings - Fork 36
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
Ensure qtree REST template metrics matches ZAPI #1784
Comments
This is the way Harvest would publish qtree metrics/labels the same as Harvest 22.05 did, you can follow these steps.
objects:
Qtree: custom_qtree.yaml
name: Qtree
query: api/storage/qtrees
object: qtree
client_timeout: 2m
counters:
- ^^svm.name => svm
- ^^volume.name => volume
- ^^name => qtree
- ^export_policy.name => export_policy
- ^security_style => security_style
- id => id
endpoints:
- query: api/private/cli/qtree
counters:
- ^^vserver => svm
- ^^volume => volume
- ^^qtree => qtree
- ^status => status
- ^oplock_mode => oplocks
plugins:
- LabelAgent:
exclude_equals:
- qtree ``
replace:
- oplocks oplocks `enable` `enabled`
- Qtree:
quotaType:
- tree
# - user
# - group
historicalLabels: true
export_options:
instance_keys:
- qtree
- volume
- svm
instance_labels:
- export_policy
- security_style
- status
- oplocks
The |
Tested on 23.05 Behaviour without flag: shape and count is same in both zapi/rest collector.
Testing on hidden flag with custom template changes as mentioned in Issue, little count difference, just checking it's expected or not. |
Verified on 0e0f002
|
See also #1678
The text was updated successfully, but these errors were encountered: