Skip to content
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

Update plank dashboard to filter and group by more things #19007

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

spiffxp
Copy link
Member

@spiffxp spiffxp commented Aug 26, 2020

Allow someone to filter and group by:

  • cluster
  • org
  • repo
  • state
  • type

Add a third graph panel, and change each graph panel to group by
user-selectable labels

I intially had a graph panel for each of these, but:

  • it's a lot of clutter
  • it appeared to be timing out prometheus at the 90d range

It turns out each template re-queries prometheus (serially) anytime the
dashboard's time-range changes, and only after templates are refreshed do
queries fired off for the dashboard's panels in parallel. This is necessary
because the label_values prometheus query is time-range dependent.

To mitigate this I changed the "type" and "state" templates to use a hardcoded
list of values, since I think it unlikely we're going to add new prowjob types
or states.

This required #19004 to
merge first so I could use template.custom

Allow someone to filter and group by:
- cluster
- org
- repo
- state
- type

Add a third graph panel, and change each graph panel to group by
user-selectable labels

I intially had a graph panel for each of these, but:
- it's a lot of clutter
- it appeared to be timing out prometheus at the 90d range

It turns out each template re-queries prometheus (serially) anytime the
dashboard's time-range changes, and only after templates are refreshed do
queries fired off for the dashboard's panels in parallel. This is necessary
because the `label_values` prometheus query is time-range dependent.

To mitigate this I changed the "type" and "state" templates to use a hardcoded
list of values, since I think it unlikely we're going to add new prowjob types
or states.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 26, 2020
@k8s-ci-robot k8s-ci-robot added area/config Issues or PRs related to code in /config area/prow/bump Updates to the k8s prow cluster approved Indicates a PR has been approved by an approver from all required OWNERS files. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Aug 26, 2020
@spiffxp
Copy link
Member Author

spiffxp commented Aug 26, 2020

Part of #18785

@spiffxp
Copy link
Member Author

spiffxp commented Aug 26, 2020

e.g.
Screen Shot 2020-08-26 at 4 50 02 PM

@spiffxp
Copy link
Member Author

spiffxp commented Aug 27, 2020

FYI @kubernetes/ci-signal

Copy link
Contributor

@hasheddan hasheddan left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for adding this @spiffxp!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 27, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hasheddan, spiffxp

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot merged commit 3ab78a4 into kubernetes:master Aug 27, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.20 milestone Aug 27, 2020
@spiffxp spiffxp deleted the update-plank-dashboard branch August 31, 2020 19:18
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. area/config Issues or PRs related to code in /config area/prow/bump Updates to the k8s prow cluster cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/testing Categorizes an issue or PR as relevant to SIG Testing. 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.

3 participants