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

New component: value generator(a kind of receiver) #28882

Closed
2 tasks
hiwayama opened this issue Nov 3, 2023 · 2 comments
Closed
2 tasks

New component: value generator(a kind of receiver) #28882

hiwayama opened this issue Nov 3, 2023 · 2 comments
Labels
question Further information is requested Sponsor Needed New component seeking sponsor

Comments

@hiwayama
Copy link
Contributor

hiwayama commented Nov 3, 2023

The purpose and use-cases of the new component

Currently, OpenTelemetry only allows pipelines to run by obtaining values from outside.
So I propose a plugin that periodically generates fixed values in the ootel-collector in the receiver's phase.

use-cases of the new component

  • Simplification of preparation for operation verification of processors and exporters
  • Simplification of health check for monitoring pipeline after otel-collector
    etc.

This may be out of OpenTelemetry's custom receiver policy,
but I would be happy to be advised if there is a better way.

Example configuration for the component

items : Array holding key/value combinations of values to be generated
name : a key value of generated value
value : generated Value
interval: Interval to generate values (unit: second)

example:

receivers:
  mock-generator:
    items:
      - name: value1
         value: 1
   interval: 10s

Telemetry data types supported

  • metrics

Is this a vendor-specific component?

  • This is a vendor-specific component
  • If this is a vendor-specific component, I am proposing to contribute and support it as a representative of the vendor.

Code Owner(s)

No response

Sponsor (optional)

No response

Additional context

If you think this idea is a good one I will try to create a PR about this custom plugin.

@hiwayama hiwayama added needs triage New item requiring triage Sponsor Needed New component seeking sponsor labels Nov 3, 2023
@mx-psi
Copy link
Member

mx-psi commented Nov 6, 2023

There are two existing components that may help you with this:

  1. telemetrygen, which can generate mock metrics
  2. The otlpjsonfile receiver which can read an OTLP/JSON file and send its data down the pipeline

Could you take a look at those and see if they help with your use case? We can consider enhancements to either if you have suggestions.

@crobert-1 crobert-1 added question Further information is requested and removed needs triage New item requiring triage labels Nov 6, 2023
@hiwayama
Copy link
Contributor Author

hiwayama commented Nov 7, 2023

Thank you for your comment.

telemetrygen helps with my usecase.

Thank you.

@hiwayama hiwayama closed this as completed Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Sponsor Needed New component seeking sponsor
Projects
None yet
Development

No branches or pull requests

3 participants