Flexgroups support ? #697
-
Hello, I'm testing new Harvest on RHEL and I've read most of the documentation and GitHub issues but i cant figure out how to best approach FlexGroups. I thought I'd ask before i start trial and error hunting for the right config. 1, We don't use FlexVols at all so we have only FlexGroups (we will never use FlexVols). I'd like to do FlexVols constituents "aggregation" of statistics already in Harvest (instead of doing it Grafana with custom merge transformation)
2, On the same note, what would be the best way to "aggregate" NFS stats - regardless of the version ?
Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Hi @wally007 ,
Also, we do support the aggregation here, https://github.com/NetApp/harvest/blob/main/conf/zapi/cdot/9.8.0/volume.yaml#L70, you can customize if needed.
|
Beta Was this translation helpful? Give feedback.
-
@wally007 you can ignore all flexvol style by adding a rule plugins:
LabelAgent:
# metric label zapi_value rest_value `default_value`
value_to_num:
- new_status state online online `0`
exclude_equals:
- style `flexgroup_constituent`
- style `flexvol`
replace:
- style style `flexgroup_constituent` `flexgroup`
Aggregator:
volume<style=flexgroup>volume node,svm,aggr,style |
Beta Was this translation helpful? Give feedback.
-
I assume to make it really work I have to also remove "replace" , correct ? With your config as-is i was getting the constituents with the label "flexgroup"
after I removed "replace", I'm finally getting only flexgroups
|
Beta Was this translation helpful? Give feedback.
-
yes, you can remove flexgroup_constituent as well by removing replace. |
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
-
@wally007 Could you file an issue for that. We'll take a look. Thanks! |
Beta Was this translation helpful? Give feedback.
@wally007 you can ignore all flexvol style by adding a rule
- style `flexvol
inexclude_equals
Docs @ https://github.com/NetApp/harvest/blob/18d4b2105b385f953adb18adcd98300454464282/cmd/poller/plugin/README.md#exclude_equals
Example below.