-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: otlpjson
connector
#34208
Comments
I'd love the idea. I have similar use case. In my company we are saving metrics into files with openTSDB format in PVC in kubernetes. Metrics are automatically picked up by sidecar which transfer it to our observability platform. OTLP metric example: I've tried to use |
**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 is the first PR for the new `otlpjson` connector. Includes the overall structure of the new component. **Link to tracking Issue:** <Issue number if applicable> #34208 **Testing:** <Describe what testing was performed and which tests were added.> **Documentation:** <Describe the documentation added.> /cc @djaglowski Signed-off-by: ChrsMark <[email protected]>
**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 is the 2nd PR for the new `otlpjson` connector (#34208). Adds the `ConsumeLogs` methods for the logs, metrics and traces respective connector types. At the moment, the connector retrieves the otlp json from the incoming Log's `Body`. This is not configurable yet. It can be decided if that needs to be. In addition, there is no attribute/metadata extraction/transfer from the incoming Log. This can be added in future iterations. **Link to tracking Issue:** <Issue number if applicable> #34208 #34239 **Testing:** <Describe what testing was performed and which tests were added.> Added. **Documentation:** <Describe the documentation added.> ~ Signed-off-by: ChrsMark <[email protected]>
**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 is the 3rd PR for the new otlpjson connector (#34208). Moves its stability to `alpha`. **Link to tracking Issue:** <Issue number if applicable> #34208 #34239 #34249 **Testing:** <Describe what testing was performed and which tests were added.> ~ **Documentation:** <Describe the documentation added.> Updated --------- Signed-off-by: ChrsMark <[email protected]>
Tested that with https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/v0.106.0. |
thanks a lot for doing this! |
The purpose and use-cases of the new component
This new connector will be used in order to extract
otlpjson
from incoming Logs.The connector will be responsible for unpacking valid otlp json from Log records
and specifically the
Body
field (this can be configurable).This component will serve similarly to the
otlpjsonfilereceiver
but in a later stagein the pipeline. This is particularly useful when the
otlpjson
cannot be consumed directlyby the aforementioned receiver.
An example use-case can be found at #33846.
Example configuration for the component
Initially the configuration can be quite basic like in
otlpjsonfilereceiver
but we can expand later according to the needs.The connector can be used in a pipeline to extract Logs, Metrics and Traces like this:
Telemetry data types supported
Is this a vendor-specific component?
Code Owner(s)
@djaglowski, @ChrsMark
Sponsor (optional)
@djaglowski (#33846 (comment))
Additional context
The text was updated successfully, but these errors were encountered: