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

Limit which instances are collected #868

Open
cgrinds opened this issue Feb 17, 2022 Discussed in #867 · 3 comments
Open

Limit which instances are collected #868

cgrinds opened this issue Feb 17, 2022 Discussed in #867 · 3 comments
Labels
customer feature New feature or request

Comments

@cgrinds
Copy link
Collaborator

cgrinds commented Feb 17, 2022

Discussed in #867

Originally posted by luddite516 February 17, 2022
We have a use case where we are collecting file lock statistics for a specific vserver. I have built the following template to collect lock stats:

name: Locks
query: lock-get-iter
object: lock

collect_only_labels: true

counters:
lock-info:
- ^node
- ^volume
- ^vserver
- ^path
- ^^lockid
- ^client-address => client_ip
- ^smb-open-type => smb_open_type

export_options:
instance_keys:
- lockid
instance_labels:
- vserver
- volume
- node
- path
- client_ip
- smb_open_type

The above template collects all the locks in the cluster, and there may be hundreds of thousands of them.

Is there any way to limit which instances are collected, to reduce load on cluster? For example, limit collection to only a specific vserver or volume?

Thanks.

@cgrinds
Copy link
Collaborator Author

cgrinds commented Feb 26, 2024

@luddite516 as of Harvest 24.02, filtering is supported by the Rest and ZapiPerf collectors. We still don't have filtering for Zapi, would moving to Rest work you?

ONTAP added api/protocols/locks in ONTAP 9.10.0, REST private CLI for 9.6+ may also work for you if you're unable to upgrade.

@luddite516
Copy link

luddite516 commented Mar 1, 2024 via email

@rahulguptajss
Copy link
Contributor

@luddite516 See if the lock templates for Zapi and Rest are helpful. These templates only provide the count of locks at the node, svm, lif, and volume levels. They are designed to avoid collecting thousands of lock instances, as requested in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants