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

Example of causal graph #28

Open
maralski opened this issue Jun 22, 2023 · 3 comments
Open

Example of causal graph #28

maralski opened this issue Jun 22, 2023 · 3 comments

Comments

@maralski
Copy link

Hey all, I tried producing a causal graph from 10 micro services using 1 minute response time data. Thought you might be interested in the results.

Here is the graph produced by PyRCA.

image

Here is the ground truth.

image

Ground truth comes from New Relic APM.

@yangwenz
Copy link
Collaborator

Hi, this is a very interesting example. Clearly, some connections are incorrect. To get a more accurate result, we usually need to add some domain knowledge constraints, for example, checkout_service -> store-frontend. You can iteratively revise the graph with more domain knowledge. In our internal use case, we do this multiple times and get a deeper understanding of our system at the end.

@maralski
Copy link
Author

maralski commented Jun 24, 2023

I didn't expected the causal graph to work from metrics. The example underscores the importance of distributed traces to establish causal relationships.

@yangwenz
Copy link
Collaborator

The causal discovery methods highly depend on some assumptions about the data. In practice, it may always generate wrong edges due to data issues. But if we utilize domain knowledge as well, it can indeed obtain more reliable results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants