[#13] dev-env: Add tracing support

Add Jaeger service as tracing collector.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-03-17 18:39:40 +03:00
parent 37507199e2
commit 93435bfb63
7 changed files with 37 additions and 0 deletions

View file

@ -2,3 +2,4 @@
# Will start from top to bottom and stop in reverse # Will start from top to bottom and stop in reverse
basenet basenet
morph_chain morph_chain
jaeger

4
.env
View file

@ -52,3 +52,7 @@ FROSTFS_ADM_URL=https://http.t5.fs.neo.org/AQgse8bPCZx4zScMuAKxowJdZPbKHp8NDcp15
FROSTFS_CONTRACTS_VERSION=4f3c08f5 FROSTFS_CONTRACTS_VERSION=4f3c08f5
FROSTFS_CONTRACTS_URL=https://http.t5.fs.neo.org/AQgse8bPCZx4zScMuAKxowJdZPbKHp8NDcp15o6VUNmk/c1nGtturFrSeygYP3AyNHDDLNbs7HhJiH2BQkgZxEmZ FROSTFS_CONTRACTS_URL=https://http.t5.fs.neo.org/AQgse8bPCZx4zScMuAKxowJdZPbKHp8NDcp15o6VUNmk/c1nGtturFrSeygYP3AyNHDDLNbs7HhJiH2BQkgZxEmZ
#FROSTFS_CONTRACTS_PATH=/path/to/unpacked/frostfs-contracts-dir #FROSTFS_CONTRACTS_PATH=/path/to/unpacked/frostfs-contracts-dir
# Jaeger tracing
JAEGER_VERSION=1.42.0
JAEGER_IMAGE=jaegertracing/all-in-one

1
services/jaeger/.env Symbolic link
View file

@ -0,0 +1 @@
../../.env

1
services/jaeger/.hosts Normal file
View file

@ -0,0 +1 @@
IPV4_PREFIX.120 jaeger.LOCAL_DOMAIN

View file

@ -0,0 +1 @@
../../.int_test.env

View file

View file

@ -0,0 +1,29 @@
version: '2.4'
services:
jaeger:
image: ${JAEGER_IMAGE}:${JAEGER_VERSION}
domainname: ${LOCAL_DOMAIN}
hostname: jaeger
container_name: jaeger
restart: on-failure
networks:
jaeger_int:
internet:
ipv4_address: ${IPV4_PREFIX}.120
volumes:
- ./../../vendor/hosts:/etc/hosts
ports:
- '4317:4317' #OTLP over gRPC
- '4318:4318' #OTLP over HTTP
- '16686:16686' #frontend
stop_signal: SIGKILL
env_file: [ ".env", ".jaeger.env", ".int_test.env" ]
environment:
- COLLECTOR_OTLP_ENABLED=true
- MEMORY_MAX_TRACES=100000
networks:
jaeger_int:
internet:
external: true
name: basenet_internet