-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added Tempo vulture example * vulture example * use proper port * added changelog * replace deprecated grcp dial method by NewClient one * added pr information in the changelog * set 14250 as default grpc port if missing from tempo push address * format dialAddress Co-authored-by: Mario <mariorvinas@gmail.com> * Use a more explicit const name for the Jaeger endpoint Co-authored-by: Mario <mariorvinas@gmail.com> * fix typo --------- Co-authored-by: Mario <mariorvinas@gmail.com>
- Loading branch information
1 parent
9134721
commit 7986de3
Showing
6 changed files
with
109 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
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,31 @@ | ||
services: | ||
|
||
# Tempo runs as user 10001, and docker compose creates the volume as root. | ||
# As such, we need to chown the volume in order for Tempo to start correctly. | ||
init: | ||
image: &tempoImage grafana/tempo:latest | ||
user: root | ||
entrypoint: | ||
- "chown" | ||
- "10001:10001" | ||
- "/var/tempo" | ||
volumes: | ||
- ./tempo-data:/var/tempo | ||
|
||
tempo: | ||
image: *tempoImage | ||
command: [ "-config.file=/etc/tempo.yaml" ] | ||
volumes: | ||
- ../shared/tempo.yaml:/etc/tempo.yaml | ||
- ./tempo-data:/var/tempo | ||
ports: | ||
- "3200:3200" # tempo | ||
- "14250:14250" # jaeger ingest grpc | ||
depends_on: | ||
- init | ||
|
||
vulture: | ||
image: grafana/tempo-vulture:latest | ||
command: [ "-tempo-query-url=http://tempo:3200", "-tempo-push-url=http://tempo:14250" ] | ||
depends_on: | ||
- tempo |
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,42 @@ | ||
## Vulture | ||
|
||
This example set up a local Tempo instance and Tempo vulture. | ||
|
||
1. First create the storage directory with the correct permissions and start up the local stack. | ||
|
||
```console | ||
mkdir tempo-data/ | ||
docker compose up -d | ||
``` | ||
|
||
At this point, the following containers should be spun up - | ||
|
||
```console | ||
docker compose ps | ||
``` | ||
``` | ||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS | ||
vulture-tempo-1 grafana/tempo:latest "/tempo -config.file…" tempo 2 minutes ago Up 2 minutes 0.0.0.0:3200->3200/tcp, 0.0.0.0:14250->14250/tcp | ||
vulture-vulture-1 grafana/tempo-vulture:latest "/tempo-vulture -tem…" vulture 2 minutes ago Up 2 minutes | ||
``` | ||
|
||
2. If you're interested you can see the wal/blocks as they are being created. | ||
|
||
```console | ||
ls tempo-data/ | ||
``` | ||
|
||
3. Tail logs of a container (eg: tempo) | ||
```bash | ||
docker logs vulture_tempo_1 -f | ||
``` | ||
|
||
4. To stop the setup use - | ||
|
||
```console | ||
docker compose down -v | ||
``` | ||
|
||
you can use Grafana or tempo-cli to make a query. | ||
|
||
tempo-cli: `$ tempo-cli query api search "0.0.0.0:3200" --use-grpc "{}" "2023-12-05T08:11:18Z" "2023-12-05T08:12:18Z" --org-id="test"` |