Add Status card - #2806
Conversation
859cfe1 to
dfad7f1
Compare
andybraren
left a comment
There was a problem hiding this comment.
Looking great! Just one minor change to the update button label to make it clearer that the update won't happen immediately when clicked (sorry, the design doc for this flow is a little out of date).
ace9793 to
b71c9bf
Compare
b71c9bf to
b110e94
Compare
b110e94 to
14bd61c
Compare
14bd61c to
3ab5f56
Compare
3ab5f56 to
2cbfeda
Compare
2cbfeda to
b04e87f
Compare
|
(Still) looking great! Good call on "API Request Success Rate" - I see that's the label that the old Cluster Status page used too. Does etcd have a health endpoint that we'd be able to expose or calculate (assuming it's important)? |
b04e87f to
8973421
Compare
not sure yet, I will be exploring that next week |
|
@kyoto any idea on a metric which could be used to get health of etcd ? #2806 (comment) |
4694059 to
24ada75
Compare
|
|
||
| const cephCluster = _.get(resources, 'ceph') as FirehoseResult; | ||
| const cephHealthState = getCephHealthState(queryResult, !!queryResultError, cephCluster); | ||
| const cephHealthState = getCephHealthState([queryResult], queryResultError, cephCluster); |
There was a problem hiding this comment.
Please check if we should use [queryResultError].
| @@ -0,0 +1,68 @@ | |||
| import * as React from 'react'; | |||
There was a problem hiding this comment.
Please update according to DevTools convention.
| healthHandler: getControlPlaneHealth, | ||
| popupComponent: () => | ||
| import( | ||
| './components/dashboards-page/control-plane-status' /* webpackChunkName: "app-control-plane-status" */ |
There was a problem hiding this comment.
| './components/dashboards-page/control-plane-status' /* webpackChunkName: "app-control-plane-status" */ | |
| './components/dashboards-page/control-plane-status' /* webpackChunkName: "console-app" */ |
|
|
||
| export interface DashboardsOverviewHealthPrometheusSubsystem | ||
| extends DashboardsOverviewHealthSubsystem { | ||
| /** The Prometheus query */ |
There was a problem hiding this comment.
| /** The Prometheus query */ | |
| /** The Prometheus queries */ |
| ) => SubsystemHealth; | ||
| healthHandler: HealthHandler<PrometheusResponse[]>; | ||
|
|
||
| popupComponent?: LazyLoader<any>; |
There was a problem hiding this comment.
Please add brief comment on newly added properties.
| query: string; | ||
| queries: string[]; | ||
|
|
||
| /** Resource which will be fetched and passed to healthHandler */ |
There was a problem hiding this comment.
| /** Resource which will be fetched and passed to healthHandler */ | |
| /** Additional resource which will be fetched and passed to healthHandler */ |
| */ | ||
| fetch?: (url: string) => Promise<R>; | ||
|
|
||
| /** Resource which will be fetched and passed to healthHandler */ |
There was a problem hiding this comment.
| /** Resource which will be fetched and passed to healthHandler */ | |
| /** Additional resource which will be fetched and passed to healthHandler */ |
| export type HealthHandler<R> = ( | ||
| response: R, | ||
| error: any, | ||
| resource?: FirehoseResult<K8sResourceKind | K8sResourceKind[]>, |
There was a problem hiding this comment.
| resource?: FirehoseResult<K8sResourceKind | K8sResourceKind[]>, | |
| additionalResource?: FirehoseResult<K8sResourceKind | K8sResourceKind[]>, |
| import { EmptyState, EmptyStateVariant, EmptyStateIcon, EmptyStateBody } from '@patternfly/react-core'; | ||
| import { CheckCircleIcon, QuestionIcon } from '@patternfly/react-icons'; | ||
|
|
||
| export const StatusBody = ({ children }) => ( |
| import { LazyLoader } from './types'; | ||
|
|
||
| namespace ExtensionProperties { | ||
| export namespace ExtensionProperties { |
There was a problem hiding this comment.
Can't we use DashboardsOverviewHealthSubsystem['properties'] ?
@rawagner Sorry, not sure. Probably best to ask someone on the etcd team. |
24ada75 to
750c54f
Compare
c261794 to
1ed0007
Compare
1ed0007 to
44828e5
Compare
|
/lgtm |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rawagner, vojtechszocs 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 |

Uh oh!
There was an error while loading. Please reload this page.