-
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
fix: backward compatibility for qtree template #1679
Conversation
Change update in PR: |
|
||
// apply all instance keys, instance labels from parent (qtree.yaml) to all quota metrics | ||
//parent instancekeys would be added in plugin metrics | ||
for _, parentKeys := range my.ParentParams.GetChildS("export_options").GetChildS("instance_keys").GetAllChildContentS() { |
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.
are we sure that each of these nodes will be present, otherwise we will panic on nil
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.
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.
added
In 22.05,
qtree_labels:
![image](https://user-images.githubusercontent.com/83282894/215990035-6b45e5ec-b91c-4fd6-a7fb-10e5b15e62e7.png)
qtree_disk_llimit:
![image](https://user-images.githubusercontent.com/83282894/215990125-7abf76cd-46a1-4a6b-b459-0e15b22f4c8b.png)
No quota_xxx metrics exist.
In 23.02, without any changes,
![image](https://user-images.githubusercontent.com/83282894/215991159-ddd7fd31-0995-4ab5-8fa7-9d2c598662d0.png)
qtree_labels:
qtree_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/215991254-315aa865-6736-4666-b71c-d58d228e8ab1.png)
quota_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/215991339-a8422033-0f87-429f-b531-baf2a6122c6e.png)
In 23.02, with changes with qtree.yaml,
![image](https://user-images.githubusercontent.com/83282894/215995965-1494f5b0-624b-4346-a4ba-2cfbe2e4b88f.png)
qtree_labels:
qtree_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/215996023-e9237a9b-90bc-4634-b491-0fca4311be09.png)
quota_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/215996087-3f4a3f36-ca78-43ec-88ec-6aed55ab956b.png)
In 23.02, when changed from qtree.yaml to qtree.22.05.yaml in default.yaml
![image](https://user-images.githubusercontent.com/83282894/216007667-5cdc523f-b3f7-412e-a1fa-98362a51e82b.png)
qtree_labels:
qtree_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/216007729-cdaaf3e2-6320-4347-abf3-a39b9f49ec40.png)
quota_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/216007830-20b15413-cd2f-4fdb-863b-23cbe7452f6b.png)
Points:
qtree_labels
would be same in both the template.qtree_labels
would be differ in both template --> reason: latest template excludes empty qtree names.Current Issue: