From c714f6c8f0f8a1829a62162cfe5850d0c5e8d72b Mon Sep 17 00:00:00 2001 From: Felipe Trindade Date: Mon, 26 Feb 2024 16:43:41 -0300 Subject: [PATCH] wip --- config/otel-collector.yaml | 10 +--------- package.json | 2 +- src/config/environments.ts | 2 -- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/config/otel-collector.yaml b/config/otel-collector.yaml index 53b76db..dc30337 100644 --- a/config/otel-collector.yaml +++ b/config/otel-collector.yaml @@ -11,12 +11,7 @@ receivers: exporters: otlphttp: endpoint: http://tempo:4318 - # prometheusremotewrite: - # endpoint: http://prometheus:9090/api/v1/push - # tls: - # insecure: true - # debug: - # verbosity: detailed + # https://opentelemetry.io/docs/collector/configuration/#pipelines service: @@ -24,6 +19,3 @@ service: traces: receivers: [otlp] exporters: [otlphttp] - # metrics: - # receivers: [otlp] - # exporters: [debug, prometheusremotewrite] diff --git a/package.json b/package.json index ba88d00..6187678 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "db:seed": "pnpm exec dbmate --migrations-dir ./src/config/database/seeds up", "start": "npx ts-node src/index.ts", "start:dev": "npx nodemon --require @opentelemetry/auto-instrumentations-node/register src/index.ts", - "container:up": "docker build -t poll-api . && docker container run -d -p 3000:3000 -p 9464:9464 --name poll --env-file .env -e DB_HOST='mysql' --network pollNetwork --log-driver fluentd --log-opt fluentd-address=127.0.0.1:24224 --log-opt fluentd-async-connect=true --log-opt tag=poll-api poll-api", + "container:up": "docker build -t poll-api . && docker container run -d -p 3000:3000 --name poll --env-file .env -e DB_HOST='mysql' --network pollNetwork --log-driver fluentd --log-opt fluentd-address=127.0.0.1:24224 --log-opt fluentd-async-connect=true --log-opt tag=poll-api poll-api", "container:down": "docker rm -f poll" }, "keywords": [], diff --git a/src/config/environments.ts b/src/config/environments.ts index 35a8648..87ad441 100644 --- a/src/config/environments.ts +++ b/src/config/environments.ts @@ -16,5 +16,3 @@ export const MAX_NUMBER_OF_CHOICES = process.env.MAX_NUMBER_OF_CHOICES === undef // OBSERVABILITY export const LOGGER_LEVEL = process.env.LOGGER_LEVEL ?? 'info' -export const OTEL_EXPORTER_OTLP_ENDPOINT = process.env.OTEL_EXPORTER_OTLP_ENDPOINT -export const METRICS_PORT = process.env.METRICS_PORT ?? '9464'