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

MetalK8s UI Overview page - Global Health #3471

Open
ChengYanJin opened this issue Aug 3, 2021 · 1 comment
Open

MetalK8s UI Overview page - Global Health #3471

ChengYanJin opened this issue Aug 3, 2021 · 1 comment
Assignees
Labels
complexity:medium Something that requires one or few days to fix priority:urgent Any issue we should jump in as soon as possible topic:ui UI-related issues

Comments

@ChengYanJin
Copy link
Contributor

ChengYanJin commented Aug 3, 2021

Component: UI

Why this is needed:
To show the global health of the metalk8s cluster.

What should be done:
#3088 (comment)
image

Implementation proposal (strongly recommended):

  • the GlobalHealthBar component in core-ui is ready.
  • add platform health selector in shell-ui
    alertname: ["PlatfromAtRisk", "PlatformDegraded"]
  • we will need to retrieve the platform alerts through Loki API in order to get the history of the alerts.
    getLast7DaysAlerts() function from src/services/loki/api.js

// by default to get the last 7day alerts from Loki
export function getLast7DaysAlerts(): Promise<Alert[]> {
const start = new Date(
new Date().getTime() - 7 * 24 * 60 * 60 * 1000,
).toISOString();
const end = new Date().toISOString();

return getAlertsLoki(start, end);
}

About LOKI: https://metal-k8s.readthedocs.io/en/latest/developer/architecture/alert-history.html?highlight=LOKI

Test plan:
TBD

@ChengYanJin ChengYanJin added the complexity:medium Something that requires one or few days to fix label Aug 3, 2021
@ChengYanJin ChengYanJin added this to To do in MetalK8s UI Dashboard Page via automation Aug 3, 2021
@ChengYanJin ChengYanJin added the topic:ui UI-related issues label Aug 3, 2021
theocerutti added a commit that referenced this issue Aug 26, 2021
@ChengYanJin
Copy link
Contributor Author

With @JBWatenbergScality, we found that we will need to implement more logic for the data we get from LOKI API in order to pass them to the Global Health Component.

The design is shown below, we will add the technical design in the design document.
Loki_design

@ChengYanJin ChengYanJin added this to the MetalK8s 2.11.0 milestone Aug 29, 2021
@ChengYanJin ChengYanJin added the priority:urgent Any issue we should jump in as soon as possible label Aug 29, 2021
@ChengYanJin ChengYanJin moved this from To do to In progress in MetalK8s UI Dashboard Page Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity:medium Something that requires one or few days to fix priority:urgent Any issue we should jump in as soon as possible topic:ui UI-related issues
Projects
Development

No branches or pull requests

3 participants