-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): add getting started guide to docs
- Loading branch information
Showing
19 changed files
with
98 additions
and
7,131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Deploy DEEP Locally | ||
# Deploy Locally | ||
|
||
The easiest way to evaluate DEEP and to test the features is to deploy the stack locally. To do this there a few | ||
examples using docker compose available in the [main repo](https://github.com/intergral/deep/tree/master/examples/docker-compose). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Getting Started | ||
|
||
On this page we will cover how to get started with DEEP using the local docker compose stack. | ||
|
||
## Prerequisites | ||
|
||
To follow this guide you will need to install: | ||
|
||
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) | ||
- [Docker](https://docs.docker.com/engine/install/) | ||
- [Docker Compose](https://docs.docker.com/compose/) | ||
|
||
## Guide | ||
|
||
To start deep using the local docker stack follow these steps: | ||
|
||
1. Checkout the repo | ||
```bash | ||
git checkout https://github.com/intergral/deep.git | ||
``` | ||
2. Open the example directory | ||
```bash | ||
cd examples/docker-compose/local | ||
``` | ||
3. Start the services | ||
```bash | ||
docker compose up -d | ||
``` | ||
|
||
At this point docker will start the required containers. These will include: | ||
|
||
- Deep - running in single tenant and single binary mode | ||
- Prometheus - collecting metrics from deep | ||
- Grafana - with datasource's connecting to Deep and Prometheus (this is currently a custom-built image with the deep | ||
plugins installed) | ||
- Test App - A simple test app running python that can be used as the target to debug | ||
|
||
## Using Deep | ||
|
||
Now that we have deep running and a test app connected we want to see what we can do. | ||
|
||
1. Open Grafana to the [explore page](http://localhost:3000/explore). | ||
2. Ensure that the Deep data source is selected. (Should be the default datasource) | ||
3. Now open the query input to create a tracepoint: | ||
|
||
![Tracepoint Create](./images/Explore_TracepointCreate.png) | ||
|
||
4. Here we can enter the file and line number to collect data. In this example we want to use: | ||
- File Path: simple_test.py | ||
- Line Number: 31 | ||
|
||
Once set click 'Create Tracepoint' to create the tracepoint. | ||
7. If created successfully you will see the result in the query result below: | ||
|
||
![Tracepoint List](./images/Explore_TracepointList.png) | ||
|
||
8. This new config will be sent to the connected client and will result in a Snapshot being created. To see the | ||
Snapshots click on the lint in the column 'Tracepoint ID'. This will create a split view and show the available | ||
Snapshots. | ||
|
||
Note: It can take up to a minute before the Snapshot will be available in the results. | ||
|
||
![Snapshot Result](./images/Explore_SnapshotSplitView.png) | ||
|
||
9. From this you can now select a snapshot from the list to view the full details. | ||
|
||
![Snapshot Panel](./images/Explore_SnapshotPanel.png) | ||
|
||
Now you know how to create tracepoints and view the data you can play with creating other tracepoints, or changing the | ||
settings to collect watches, or change the fire count. | ||
|
||
The source code for the test app is open source [intergral/python-deep-client/examples](https://github.com/intergral/deep-python-client/tree/master/examples) | ||
|
||
|
||
## Clean up | ||
To clean up this example you simple need to remove the compose stack. | ||
|
||
```bash | ||
docker compose down -v | ||
``` | ||
|
||
You will also might want to remove the stored data | ||
```bash | ||
rm -Rf deep-data | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.