-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: support aggr filter for flexgroup volumes #1691
Conversation
} | ||
// make sure the order of aggregate is same for each poll | ||
sort.Strings(aggrs) | ||
fg.SetLabel("aggr", strings.Join(aggrs, ",")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better not to change aggr label returned by perf template given volume_labels
will have empty aggr for flexgroup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -31,28 +32,54 @@ func (me *Volume) Run(data *matrix.Matrix) ([]*matrix.Matrix, error) { | |||
opsKeyPrefix := "temp_" | |||
re := regexp.MustCompile(`^(.*)__(\d{4})$`) | |||
|
|||
metricName := "aggrs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be 'volume_aggr_labels' is better output. Also rather than adding metric to the template perf matrix, it is better to create a new matrix for these labels so that existing aggr
labels are not modified for perf template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
cache := data.Clone(false, true, false) | ||
cache.UUID += ".Volume" | ||
|
||
me.Logger.Trace().Msgf("added metric: (%s) [%s] %v", metricName, metricName, metric) | ||
|
||
flexgroupAggrsMap := make(map[string]map[string]bool) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can use the eisting custom DS set
in harvest. It will save some of the checks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, made the change in other PR: #1695
UI panels:
![image](https://user-images.githubusercontent.com/83282894/217019951-16e159ad-2c43-414c-88b3-80ba5f8d74ab.png)
This panel has 2 info to be shown, second info is from ontap.
![image](https://user-images.githubusercontent.com/83282894/217023568-630170ca-4d3d-4f6e-86ca-890d63db7d86.png)
new metric from zapiperf:
![image](https://user-images.githubusercontent.com/83282894/217022313-bfa0cd18-fced-49dc-9212-3de8de6ee2d5.png)
metric labels for flexgroup:
![image](https://user-images.githubusercontent.com/83282894/217022072-dc4bd5fa-eec5-4277-a972-c371ac5d5d9a.png)