I am seeing this error on the logs after enabling ...
# announcements
b
I am seeing this error on the logs after enabling metrics, any suggestions?
Copy code
Process is not running on K8S Error: Failed to load page, status code: 403
    at IncomingMessage.<anonymous> (/usr/local/src/app/node_modules/@opentelemetry/resource-detector-aws/build/src/detectors/AwsEksDetector.js:192:32)
    at /usr/local/src/app/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:55
    at AsyncLocalStorage.run (node:async_hooks:319:14)
    at AsyncLocalStorageContextManager.with (/usr/local/src/app/node_modules/@opentelemetry/context-async-hooks/build/src/AsyncLocalStorageContextManager.js:33:40)
    at IncomingMessage.contextWrapper (/usr/local/src/app/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:32)
    at IncomingMessage.emit (node:events:525:35)
    at IncomingMessage.emit (node:domain:489:12)
    at endReadableNT (node:internal/streams/readable:1358:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
{"stack":"Error: connect ECONNREFUSED 127.0.0.1:4318\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)\n    at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17)","message":"connect ECONNREFUSED 127.0.0.1:4318","errno":"-111","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":"4318","name":"Error"}
f
Did you specify the
OTEL_EXPORTER_OTLP_ENDPOINT
environment variable? Looks like it's trying to post traces to 127.0.0.1:4318, which if you're running GrowthBook in a docker container, is not going to work since 127.0.0.1 points to localhost within the docker network, not the host machine.
b
ah ok that makes sense. Thanks Jeremy
how about if I want GB just to expose the metrics?
and not send them somewhere
we have configured DD to scrape metrics
(datadog)
f
There are some instructions at https://docs.datadoghq.com/opentelemetry/otlp_ingest_in_the_agent/?tab=host for how to send metrics and traces to a datadog agent
b
thans, will take a look at those