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

Node overview #4911

Merged
merged 1 commit into from Apr 14, 2020
Merged

Conversation

rawagner
Copy link
Contributor

@rawagner rawagner commented Apr 3, 2020

screencapture-localhost-9000-k8s-cluster-nodes-ip-10-0-170-157-us-east-2-compute-internal-2020-04-03-16_14_18
screencapture-localhost-9000-k8s-cluster-nodes-ip-10-0-171-115-us-east-2-compute-internal-2020-04-03-16_13_55
Screenshot from 2020-04-03 16-17-23

resource limits/requests (threshold for error was adjusted)
Screenshot from 2020-04-04 16-42-49
Screenshot from 2020-04-04 16-16-33
Screenshot from 2020-04-06 14-27-38

This PR does not contain (will be a separate PR):

  • status messages
  • baremetal info
  • activities

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. component/ceph Related to ceph-storage-plugin labels Apr 3, 2020
@openshift-ci-robot openshift-ci-robot added component/core Related to console core functionality approved Indicates a PR has been approved by an approver from all required OWNERS files. component/dashboard Related to dashboard component/noobaa Related to noobaa-storage-plugin component/olm Related to OLM component/sdk Related to console-plugin-sdk component/shared Related to console-shared labels Apr 3, 2020
@rawagner
Copy link
Contributor Author

rawagner commented Apr 3, 2020

@andybraren a few notes
Inventory card - Images do not have a link since I think there's no place to link to
Health checks popup - I've changed Unhealthy conditions to just Conditions

@andybraren
Copy link
Contributor

Inventory card - Images do not have a link since I think there's no place to link to

I feel like the ability to link to section headings within Details pages has come up before. I don't think we duplicate headings in any individual Details tabs, so using those to generate ids seems viable. Maybe implementing this Console-wide would make sense. What do you think @benjaminapetersen?

Health checks popup - I've changed Unhealthy conditions to just Conditions

I like that better, good call!

@openshift-ci-robot openshift-ci-robot added the component/kubevirt Related to kubevirt-plugin label Apr 3, 2020
@rawagner rawagner force-pushed the node-dashboard branch 3 times, most recently from b9c4a38 to 742397b Compare April 5, 2020 15:32
@kyoto
Copy link
Member

kyoto commented Apr 6, 2020

@openshift/openshift-team-monitoring

Still WIP, but this PR is adding a number of queries (see queries.ts).

@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 6, 2020
@rawagner rawagner force-pushed the node-dashboard branch 5 times, most recently from 24d6824 to 4928340 Compare April 6, 2020 13:06
@rawagner rawagner changed the title [WIP] Node dashboard Node dashboard Apr 8, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 8, 2020
@rawagner rawagner mentioned this pull request Apr 8, 2020
`instance:node_filesystem_usage:sum{instance='<%= node %>'}`,
),
[NodeQueries.FILESYSTEM_TOTAL]: _.template(
`node_filesystem_size_bytes{mountpoint="/", instance='<%= node %>'}`,

Choose a reason for hiding this comment

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

This is total filesystem size only for / mountpoint and not for all node filesystems. Is this intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, Im not sure why I added it there.. will be removed

@brancz
Copy link

brancz commented Apr 8, 2020

Frankly I don't understand why we re-did this work when we already have the Grafana dashboards integrated into the console, and have a node details dashboard as part of that. A number of years have already gone into tuning details of the queries in those dashboards.

@andybraren
Copy link
Contributor

@brancz I'll forward you a kinda long email thread from late last year on this topic when those integrated Monitoring Dashboards were being designed.

TL;DR: "Overviews" like this one (this PR is mis-titled) are management-oriented jumping off points with functional and technical differences that distinguish them from the Prometheus-based Cluster/Node Dashboards within the Monitoring area of the Web Console. The Utilization card's queries do overlap, but the various other hyperlinks, statuses, messages, suggested actions, and operator integrations (like metal3) that appear in other cards and popovers address a different set of management-oriented use cases.

FWIW the Console has included node metrics in Details pages for a while, and this new Overview de-emphasizes them somewhat. We'll continue to think about ways to better organize/integrate these views since we're not big fans of overlap either.

image

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 10, 2020
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 13, 2020
@rawagner rawagner changed the title Node dashboard Node overview Apr 14, 2020
@brancz
Copy link

brancz commented Apr 14, 2020

The intend makes perfect sense to me, to me this is just about reusing queries that have been worked on and been tuned for several years as opposed to creating or maintaining the existence of other queries that are likely to repeat the same mistakes. If possible I'd like to see a future where we embed the dashboards that we recently integrated into console for this purpose.

import * as _ from 'lodash';
import { QueryWithDescription } from '@console/shared/src/components/dashboard/utilization-card/UtilizationItem';

export enum NodeQueries {

Choose a reason for hiding this comment

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

Since the Bare Metal Hosts use node exporter queries as well, we should eventually update Bare Metal Host dashboard to use these common queries defined here instead of redefining them specifically for BMHs. (see metal3-plugin/src/components/baremetal-hosts/dashboard/queries.ts).

@jtomasek
Copy link

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 14, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jtomasek, rawagner

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

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 591a216 into openshift:master Apr 14, 2020
@spadgett spadgett added this to the v4.5 milestone Apr 16, 2020
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. component/ceph Related to ceph-storage-plugin component/core Related to console core functionality component/dashboard Related to dashboard component/kubevirt Related to kubevirt-plugin component/noobaa Related to noobaa-storage-plugin component/olm Related to OLM component/sdk Related to console-plugin-sdk component/shared Related to console-shared lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants