-
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 metrics in rest #1788
Conversation
fb8e55e
to
98ccc9f
Compare
conf/rest/9.12.0/qtree.yaml
Outdated
- filter: | ||
- name=!"" |
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.
As 22.05 behaviour would need all qtrees, I have removed this filter and later filtered with exclude_equals
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.
Wouldn't it be better to ask Customer using 22.05 version make this change to template themselves?
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.
Yes, can be possible.
As the REST don't support merge of custom template, We can ask them to create this custom rest template as mentioned here #1784, I will update the PR and the steps accordingly so no changes would be required in current 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.
Updated the PR, we don't need to change the steps mentioned in #1784.
Tested with REST collector,
metrics behaviour in Harvest 22.05
qtree_labels:
![image](https://user-images.githubusercontent.com/83282894/222110191-f9b3ebaa-ada7-4af4-9c65-167ebaf5f6e4.png)
qtree_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/222110481-376ae82b-7b6b-44f5-8a45-190dc70a0043.png)
quota_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/222110574-478c96b8-c619-43ea-95c4-fa0070f7fe12.png)
metrics behaviour in latest Harvest
Case1: Same behaviour as Harvest 22.05
with hidden key-val pair
qtree_labels:
![image](https://user-images.githubusercontent.com/83282894/222138666-f4e83ff6-558f-4d9f-b2a9-ddae4998aa8a.png)
qtree_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/222138576-2243c286-d343-41a1-8c4c-d2d26aae6007.png)
quota_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/222138612-b44a1a21-f110-48cb-af1c-6a5c851539e9.png)
Case2: Current Harvest behaviour
without hidden key-val pair:
qtree_labels:
![image](https://user-images.githubusercontent.com/83282894/222127756-89de5c9c-43e8-4c30-91a5-da4c9432a02d.png)
qtree_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/222127846-df7ebff9-869f-4c5e-ad81-2396d723b230.png)
quota_disk_limit:
![image](https://user-images.githubusercontent.com/83282894/222127910-f04045d4-262d-4686-8dec-dcbf7f5d7dc1.png)