You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
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.
Component: UI
Why this is needed:
To show the global health of the metalk8s cluster.
What should be done:
#3088 (comment)
Implementation proposal (strongly recommended):
alertname:
["PlatfromAtRisk", "PlatformDegraded"]
Loki
API in order to get the history of the alerts.getLast7DaysAlerts()
function from src/services/loki/api.jsAbout LOKI: https://metal-k8s.readthedocs.io/en/latest/developer/architecture/alert-history.html?highlight=LOKI
Test plan:
TBD
The text was updated successfully, but these errors were encountered: