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

otlpjsonfilereceiver: support repeatedly ingesting telemetry from a static file at an interval #31533

Closed
ridwanmsharif opened this issue Mar 2, 2024 · 3 comments
Assignees

Comments

@ridwanmsharif
Copy link
Contributor

Component(s)

receiver/otlpjsonfile

Is your feature request related to a problem? Please describe.

This is useful for some usecases like:
- Sending a heartbeat log to a logging backend, as a signal that the
logging agent is alive
- Sending static metadata as metrics to metrics backend. The metadata
can be read using the otlpjsonfilereceiver that uses this package
and config.

Describe the solution you'd like

A config knob that allows re-reading the file at an interval from the beginning.

Describe alternatives you've considered

Separate receiver for this use case. But that is not ideal to maintain.

Additional context

No response

@ridwanmsharif ridwanmsharif added enhancement New feature or request needs triage New item requiring triage labels Mar 2, 2024
Copy link
Contributor

github-actions bot commented Mar 2, 2024

Pinging code owners:

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

@atoulme atoulme removed the needs triage New item requiring triage label Mar 2, 2024
djaglowski pushed a commit that referenced this issue Apr 18, 2024
…tbeats (#31534)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
This change adds a config option to allow users to replay static
telemetry at an interval (poll_interval is the configurable interval).

This is useful for some  usecases like:
- Sending a heartbeat log to a logging backend, as a signal that the
logging agent is alive
- Sending static metadata as metrics to metrics backend. The metadata
can be read using the `otlpjsonfilereceiver` that uses this package and
config.

**Link to tracking Issue:** 

#31533

**Testing:**
- Manual testing
- unit test for the fileconsumer
- test for the `otlpjsonfilereceiver`

**Documentation:** <Describe the documentation added.>

---------

Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
Copy link
Contributor

github-actions bot commented May 2, 2024

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

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

@github-actions github-actions bot added the Stale label May 2, 2024
@ridwanmsharif
Copy link
Contributor Author

Completed in #31534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants