Skip to content

How to debug metrics not being sent to otel-collector #2058

Answered by mattc1170
mattc1170 asked this question in Q&A
Discussion options

You must be logged in to vote

I just wanted to follow up with a report on how we discovered and fixed the problem in case someone runs into a similar issue.

I wound up having to add some logging to opentelemetry-sdk where we figured out the tokio multithreaded runtime IntervalStream created in src/metrics/periodic_reader.rs was not generating the periodic Export messages that initiate metrics export. By default, the runtime will create one worker thread per CPU core. Our Kubernetes pod container was configured to use 1 CPU, so the runtime was only configured with 1 worker thread.

Something in our application was blocking that one runtime worker thread which caused the task responsible for generating the Export message…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mattc1170
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mattc1170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants