Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe-loka committed Feb 26, 2024
1 parent 0cd656c commit c714f6c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
10 changes: 1 addition & 9 deletions config/otel-collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,11 @@ 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:
pipelines:
traces:
receivers: [otlp]
exporters: [otlphttp]
# metrics:
# receivers: [otlp]
# exporters: [debug, prometheusremotewrite]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down
2 changes: 0 additions & 2 deletions src/config/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit c714f6c

Please sign in to comment.