-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from intergral/docs
chore(docs): add links to be docs
- Loading branch information
Showing
16 changed files
with
107 additions
and
7 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
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,35 @@ | ||
# Create Tracepoint | ||
|
||
To create a tracepoint using Explore first select the 'Deep' data source then ensure you select 'Tracepoints -> Create | ||
Tracepoint' as below | ||
|
||
![Create Tracepoint](create_tracepoint.png) | ||
|
||
Now you will need to configure the tracepoint to trigger the way you need it to. To do this you **MUST** set the file | ||
and line number (all other settings are optional). | ||
|
||
| Config | Default | Example | Description | | ||
| ----------- | ------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| File Path | | simple_test.py | This is the file path to for the **source** file in which the trigger is to be installed. This can be a full path or just the file name, the usage of this is dependant on the agent that is being used. | | ||
| Line number | | 42 | This is the line number in the **source** file where the trigger is to be installed. | | ||
| Fire Count | 1 | 10 | This is the number of times the trigger should fire before it is disabled. This count is per client not a global value. This can be set to 'Forever' to trigger the tracepoint every time (rate limiting still applies) until it is removed. | | ||
| Targeting | | service.name=myapp | This is a query that is used to target triggers to specific clients based on the client resource. Using the targeting `service.name=myapp` will mean only clients that define the label `service.name` with the value `myapp` will receive this trigger. | | ||
| Log Message | | user id = {user.id} | This allows for dynamic log messages to be injected into the target application. These log messages will be output by the client and can be consumed by log platforms such as Loki. The log messages can contain expressions between `{}` that will be evaluated at the trigger location, allowing for the extraction of local variables. | | ||
| Trace | None | Line | This allows for dynamic spans to be injected, by selecting 'Line' a span will be created around the targeted line. Selecting 'Method/Function', will create a span around the enclosing method/function. | | ||
| Metrics | | basket_size len(basket.items) | This allows for dynamic metrics to be created using the local variables. [Read more below.](#metrics) | | ||
| Watches | | user.id | This allows for selection of specific variables when using snapshots. To learn more about watches view the docs for the [client](https://intergral.github.io/deep/#client) being used. | | ||
|
||
# Metrics | ||
|
||
When creating metrics you can specify the metric name, and the value. | ||
|
||
- The name should be a compatible metric lowercase and with underscores(\_). | ||
- The metric name will be prefixed with 'deep\_' to ensure we do not affect existing metrics. Meaning if the metric | ||
name given is 'basket_size' then the metric generated will be 'deep_basket_size'. | ||
- The value can be: | ||
- A value: a fixed numeric value | ||
- An expression: an expression that used local variables to extract a numeric value. | ||
|
||
When defining metrics it is important that the expression used is valid and results in a numeric value. Any errors while | ||
processing the metrics will result in no metrics being produced, and nothing appearing in the metric endpoint. Any | ||
errors can be seen in the client logs, if enabled. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Delete Tracepoint | ||
|
||
To delete a tracepoint using Explore, select the Deep datasource and select 'Tracepoints -> Delete Tracepoint'. | ||
|
||
![Delete Tracepoint](delete_tracepoint.png) | ||
|
||
In this section you can enter the ID of the tracepoint to delete. The ID of the tracepoint is visible in the table view | ||
of the list tracepoint response (this should also provide a delete link). If using the 'intergral-deep-tracepoint-panel' | ||
plugin then a button is available to delete the tracepoint. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Find ID | ||
|
||
The simplest way to view the connected snapshots is to use 'Find ID' this requires you to provide the ID of the | ||
snapshot to view. You can do this using the Explore page 'Find ID', while selecting a Deep datasource. | ||
|
||
![Find ID](find_id.png) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# List Tracepoint | ||
|
||
To list the configured tracepoints using Explore, select the Deep datasource and select 'Tracepoints -> List Tracepoints'. | ||
|
||
![List Tracepoints](list_tracepoint.png) | ||
|
||
Using the run query button will list the available tracepoints. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Search | ||
|
||
Search can be used to search for snapshots that have been triggered. Using explore open the Deep datasource and select search. | ||
|
||
![Search Snapshot](search_snapshot.png) | ||
|
||
Here you can enter a query to narrow down the search. | ||
|
||
- Service Name: This lets you select a service by name that has sent snapshots | ||
- Tags: Here you can further filter by any attribute or resource value | ||
|
||
The results will be shown as a table where you can select a single snapshot to view. |
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