-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
out_opentelemetry: add support for OTLP Logs #5747
Conversation
|
@Syn3rman, some early feedback:
|
Signed-off-by: Aditya Prajapati <aditya@calyptia.com>
This commit will allow users to export logs from Fluent Bit to the OpenTelemetry collector using the otlp protocol. It replaces the config parameter 'uri' with 'logs_uri' and 'metrics_uri', which can be used to configure the endpoint where the collector is listening for logs and metrics Signed-off-by: Aditya Prajapati <aditya@calyptia.com> Co-authored-by: Leonardo Alminana <leonardo@calyptia.com>
a5547c6
to
740c94c
Compare
|
@leonardo-albertovich is this PR approved ? |
|
we need a PR for the documentation |
|
@edsiper Added link to PR in description ✅ |
|
Is support for traces for the opentelemetry output plugin currently under development? |
|
@epsteina16 yes |
|
Heyho! 👋 Thanks a lot @Syn3rman for adding this! 🙇 docker run -p 127.0.0.1:24224:24224 ghcr.io/fluent/fluent-bit/master /fluent-bit/bin/fluent-bit -i forward -f 1 -o opentelemetry logs_uri="/v1/logs" -vI still get [2022/09/27 10:28:41] [debug] [router] data generated by forward.0 input are logs, but matching destination plugin opentelemetry.0 don't handle logs. Skipping destination.Is there something missing to add this feature to the container build from master? Same goes for the staging container btw. |
|
Hey @svettwer , |
|
Awesome! Thanks for your response! 😄 |
|
Took me a while now to come back with feedback. |
* out_opentelemetry: add proto generated files for logs Signed-off-by: Aditya Prajapati <aditya@calyptia.com> * out_opentelemetry: add support for otlp log export This commit will allow users to export logs from Fluent Bit to the OpenTelemetry collector using the otlp protocol. It replaces the config parameter 'uri' with 'logs_uri' and 'metrics_uri', which can be used to configure the endpoint where the collector is listening for logs and metrics Signed-off-by: Aditya Prajapati <aditya@calyptia.com> Co-authored-by: Leonardo Alminana <leonardo@calyptia.com> Signed-off-by: Aditya Prajapati <aditya@calyptia.com> Co-authored-by: Leonardo Alminana <leonardo@calyptia.com> Signed-off-by: Manal Geries <mgeriesa@gmail.com>
* out_opentelemetry: add proto generated files for logs Signed-off-by: Aditya Prajapati <aditya@calyptia.com> * out_opentelemetry: add support for otlp log export This commit will allow users to export logs from Fluent Bit to the OpenTelemetry collector using the otlp protocol. It replaces the config parameter 'uri' with 'logs_uri' and 'metrics_uri', which can be used to configure the endpoint where the collector is listening for logs and metrics Signed-off-by: Aditya Prajapati <aditya@calyptia.com> Co-authored-by: Leonardo Alminana <leonardo@calyptia.com> Signed-off-by: Aditya Prajapati <aditya@calyptia.com> Co-authored-by: Leonardo Alminana <leonardo@calyptia.com> Signed-off-by: root <root@sumit-acs.novalocal>
Adds support for exporting Fluent Bit logs to OpenTelemetry collector using OTLP
Fixes #5559
Enter
[N/A]in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
Documentation
Documentation PR: fluent/fluent-bit-docs#852
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.