Skip to content

Add list of configurations to the resource usage dashboard - #808

Merged
mdemirhan merged 4 commits into
knative:masterfrom
mdemirhan:dashboardfix
May 5, 2018
Merged

mdemirhan merged 4 commits into
knative:masterfrom
mdemirhan:dashboardfix

Conversation

@mdemirhan

Copy link
Copy Markdown
Contributor

Current dashboard shows a flat list of all revisions. This one adds "Configuration" filtering before showing revisions.

@mdemirhan
mdemirhan requested a review from yanweiguo May 4, 2018 16:11
@google-prow-robot google-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 4, 2018

@evankanderson evankanderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this "sort": 0, when below it is "sort": 1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:
s1

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.

@evankanderson

Copy link
Copy Markdown
Member

/approve
/lgtm

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label May 4, 2018
@google-prow-robot

Copy link
Copy Markdown

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-prow-robot google-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 4, 2018
@google-prow-robot google-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 4, 2018
@mdemirhan

Copy link
Copy Markdown
Contributor Author

Slipping in one more change where I added "Namespace" filtering to the dashboards as well, which fixes #809.

@yanweiguo

Copy link
Copy Markdown
Contributor

/lgtm

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label May 4, 2018

@evankanderson evankanderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elsewhere, you use "sort": 2 now in this PR. Is there a reason for setting a different sort order in these circumstances?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@google-prow-robot

Copy link
Copy Markdown

New changes are detected. LGTM label has been removed.

@google-prow-robot google-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label May 4, 2018
@google-prow-robot

Copy link
Copy Markdown

@mdemirhan: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-elafros-elafros-test d184d1b link /test pull-elafros-elafros-test

Full PR test history. Your PR dashboard.

Details

Instructions 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.

@mdemirhan
mdemirhan merged commit 7800f98 into knative:master May 5, 2018
@mdemirhan
mdemirhan deleted the dashboardfix branch May 5, 2018 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants