Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage ID in otlpjson receiver is nil #31750

Closed
yasha145 opened this issue Mar 14, 2024 · 5 comments
Closed

Storage ID in otlpjson receiver is nil #31750

yasha145 opened this issue Mar 14, 2024 · 5 comments
Labels
bug Something isn't working receiver/otlpjsonfile

Comments

@yasha145
Copy link

yasha145 commented Mar 14, 2024

Component(s)

receiver/otlpjsonfile

Describe the issue you're reporting

What should be the value of storage ID as I am using otlpjson receiver and when I run it, it starts watching the mentioned json file but further it does not export anything to console as I am using debug exporter.
I noticed that the storage ID is nil, could that be the reason of not exporting data to console?

@yasha145 yasha145 added the needs triage New item requiring triage label Mar 14, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@atoulme
Copy link
Contributor

atoulme commented Mar 14, 2024

Please post your configuration?

@atoulme atoulme removed the needs triage New item requiring triage label Mar 14, 2024
@yasha145
Copy link
Author

yasha145 commented Mar 14, 2024

Hi @atoulme

This is my config.yaml file

receivers:
--otlpjsonfile:
-----include:

  • "/Users/Documents/jsonFile.json"

exporters:
---debug:
------verbosity: detailed
------sampling_initial: 10
------sampling_thereafter: 50

service:
---pipelines:
------metrics:
--------receivers: [otlpjsonfile]
--------exporters: [debug]
---telemetry:
------logs:
--------level: debug

And I am getting the below messages on terminal on repeat:

2024-03-07T10:47:30.518+0530 debug fileconsumer/file.go:133 matched files {"kind": "receiver", "name": "otlpjsonfile", "data_type": "metrics", "component": "fileconsumer", "paths": ["/Users/Documents/jsonFile.json"]}
2024-03-07T10:47:30.518+0530 debug fileconsumer/file.go:170 Consuming files{paths 1 0 [/Users/Documents/jsonFile.json]} {"kind": "receiver", "name": "otlpjsonfile", "data_type": "metrics", "component": "fileconsumer"}
2024-03-07T10:47:30.524+0530 info fileconsumer/file.go:260 Started watching file {"kind": "receiver", "name": "otlpjsonfile", "data_type": "metrics", "component": "fileconsumer", "path": "/Users/Documents/jsonFile.json"}

@djaglowski
Copy link
Member

@yasha145, are you willing to share your resolution to the issue?

@yasha145
Copy link
Author

Hi @djaglowski
The terminal was getting stuck because it was waiting for the new entry on the file, while I thought it was because of storageID is nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working receiver/otlpjsonfile
Projects
None yet
Development

No branches or pull requests

4 participants