openrca / orca-ui

Web UI for OpenRCA
https://openrca.io
Apache License 2.0
33 stars 4 forks source link

RCA dashboard introduction #157

Closed k-jano closed 3 years ago

k-jano commented 3 years ago

This is initial commit of RCA dashboard provided in OpenRCA UI.

Root Cause Analysis algorithm requires an initial object to perform analysis. The idea is to provide a comfortable way to enter the dashboard and start the calculation. The proper alert id will be passed to the subpage via query params. The way to construct link and redirect to subpage will be detailed implemented in following weeks.

So far the dashboard contains the most required logic to provide possibility to parallel programming. The PR contains routing, initializing a component state and performing an example of the request. Components like fault trajectory graph, rca output table etc will be provided in next PRs.

bzurkowski commented 3 years ago

Consider the following dashboard path:

http://localhost:8080/rca?source=XXX&time_point=YYY
bzurkowski commented 3 years ago

Let's assume the following initial RCA endpoint and fault trajectory payload:

/api/v1/rca?source=XXX&$time_point=YYY
{
    "trajectories": [
        {
            "nodes": [],
            "links": [],
            "score": 0.555
        },
        {
            "nodes": [],
            "links": [],
            "score": 0.555
        },
        {
            "nodes": [],
            "links": [],
            "score": 0.555
        }
    ]
}
k-jano commented 3 years ago

@bzurkowski agree, I added time_point parameter handling and changed route to /rca.

Let's provide handling a proper response in separate PR. This one is just introduction to make able work parallel at rca dashboard.