Repository navigation
Add list of configurations to the resource usage dashboard - #808
Conversation
evankanderson
left a comment
There was a problem hiding this comment.
Is there a sample of this somewhere that I can look at (or a screenshot of old/new)?
| "query": "label_values(container_memory_usage_bytes, pod_name)", | ||
| "refresh": 1, | ||
| "regex": "(.+?)-\\d\\d\\d\\d\\d-deployment-.*", | ||
| "sort": 0, |
There was a problem hiding this comment.
Why is this "sort": 0, when below it is "sort": 1?
There was a problem hiding this comment.
Thanks for catching this. I have gone through all "sort"s in this file and fixed them (sort 0 is no sorting, 1 ascending, 2 descending).
Here is a screenshot after the changes:

Before the changes, namespace and configuration options were missing and it was a flat list of revisions for this dashboard. For other dashboards, namespace filter was missing but configuration filter was there.
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: evankanderson, mdemirhan The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Slipping in one more change where I added "Namespace" filtering to the dashboards as well, which fixes #809. |
|
/lgtm |
evankanderson
left a comment
There was a problem hiding this comment.
It seems like there's a lot of duplication in some of these configurations (i.e. the templating options). I don't know how many of these are default, but it might be worth looking at generating the yaml file if we need to consistently override the defaults.
| "query": "label_values(container_memory_usage_bytes{container_name=\"ela-container\"}, namespace)", | ||
| "refresh": 1, | ||
| "regex": "", | ||
| "sort": 1, |
There was a problem hiding this comment.
Elsewhere, you use "sort": 2 now in this PR. Is there a reason for setting a different sort order in these circumstances?
There was a problem hiding this comment.
After discussion, it turns out that the reason is that tooltips are sorted in descending order so the highest values can be seen.
I think we should do a descending sort for revisions, too, so that the newest revision is likely to be on the top.
It's probably also worth starting/adding a comment at the top explaining important options.
|
New changes are detected. LGTM label has been removed. |
|
@mdemirhan: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Current dashboard shows a flat list of all revisions. This one adds "Configuration" filtering before showing revisions.