From 93435bfb63d8b40aff45b37937c50cc001492f4d Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Fri, 17 Mar 2023 18:39:40 +0300 Subject: [PATCH] [#13] dev-env: Add tracing support Add Jaeger service as tracing collector. Signed-off-by: Dmitrii Stepanov --- .bootstrap_services | 1 + .env | 4 ++++ services/jaeger/.env | 1 + services/jaeger/.hosts | 1 + services/jaeger/.int_test.env | 1 + services/jaeger/.jaeger.env | 0 services/jaeger/docker-compose.yml | 29 +++++++++++++++++++++++++++++ 7 files changed, 37 insertions(+) create mode 120000 services/jaeger/.env create mode 100644 services/jaeger/.hosts create mode 120000 services/jaeger/.int_test.env create mode 100644 services/jaeger/.jaeger.env create mode 100644 services/jaeger/docker-compose.yml diff --git a/.bootstrap_services b/.bootstrap_services index 3071b48..b4cf622 100644 --- a/.bootstrap_services +++ b/.bootstrap_services @@ -2,3 +2,4 @@ # Will start from top to bottom and stop in reverse basenet morph_chain +jaeger diff --git a/.env b/.env index c7955fc..6fec3eb 100644 --- a/.env +++ b/.env @@ -52,3 +52,7 @@ FROSTFS_ADM_URL=https://http.t5.fs.neo.org/AQgse8bPCZx4zScMuAKxowJdZPbKHp8NDcp15 FROSTFS_CONTRACTS_VERSION=4f3c08f5 FROSTFS_CONTRACTS_URL=https://http.t5.fs.neo.org/AQgse8bPCZx4zScMuAKxowJdZPbKHp8NDcp15o6VUNmk/c1nGtturFrSeygYP3AyNHDDLNbs7HhJiH2BQkgZxEmZ #FROSTFS_CONTRACTS_PATH=/path/to/unpacked/frostfs-contracts-dir + +# Jaeger tracing +JAEGER_VERSION=1.42.0 +JAEGER_IMAGE=jaegertracing/all-in-one \ No newline at end of file diff --git a/services/jaeger/.env b/services/jaeger/.env new file mode 120000 index 0000000..c7360fb --- /dev/null +++ b/services/jaeger/.env @@ -0,0 +1 @@ +../../.env \ No newline at end of file diff --git a/services/jaeger/.hosts b/services/jaeger/.hosts new file mode 100644 index 0000000..06f6ef2 --- /dev/null +++ b/services/jaeger/.hosts @@ -0,0 +1 @@ +IPV4_PREFIX.120 jaeger.LOCAL_DOMAIN diff --git a/services/jaeger/.int_test.env b/services/jaeger/.int_test.env new file mode 120000 index 0000000..582b6a2 --- /dev/null +++ b/services/jaeger/.int_test.env @@ -0,0 +1 @@ +../../.int_test.env \ No newline at end of file diff --git a/services/jaeger/.jaeger.env b/services/jaeger/.jaeger.env new file mode 100644 index 0000000..e69de29 diff --git a/services/jaeger/docker-compose.yml b/services/jaeger/docker-compose.yml new file mode 100644 index 0000000..be045f8 --- /dev/null +++ b/services/jaeger/docker-compose.yml @@ -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 \ No newline at end of file