callgraph/README.md

26 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2016-04-13 12:17:46 +00:00
# Get microservice callgraph
2016-06-28 06:56:46 +00:00
Dependencies:
- [Sysdig](http://sysdig.org/)
- go
2016-06-28 07:01:38 +00:00
- [rancher](http://rancher.com/) (only in the current setup)
2016-06-28 07:00:48 +00:00
- [sharelatex](https://www.sharelatex.com/) (only in the current setup)
2016-06-28 06:56:46 +00:00
This project can obtaining the service graph without any application knowledge
by inspecting network related syscalls of processes. In the current form
it contains an integration test targeting sharelatex as an application and
expect a rancher cluster to resolve ips back to hostnames. This could be
generalized later on.
The reusable part of this project is probably capture-connections.lua, which can
be used to get information from sysdig.
2016-06-28 04:05:03 +00:00
```
2016-04-13 12:33:27 +00:00
$ go get github.com/mic92/clusterssh
2016-04-13 12:17:46 +00:00
$ go build .
$ wget http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar
$ java -jar selenium-server-standalone-2.53.0.jar
$ ./callgraph http://sharelatex.local/login 192.168.8.33 192.168.8.34 192.168.8.35 192.168.8.36 192.168.8.37 192.168.8.38 192.168.8.17 192.168.8.18 192.168.8.19 | dot -Tpng > graph.png
2016-06-28 04:05:03 +00:00
```