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

Native Pubsub support #2261

Open
owenhaynes opened this issue Dec 11, 2024 · 4 comments
Open

Native Pubsub support #2261

owenhaynes opened this issue Dec 11, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@owenhaynes
Copy link

Request

Allow for native Pubsub support to fetch logs and process

Use case

I know we currently have gcplog, the issue with this it expects log messages to be the GCP Log Format.

We currently abuse this with getting non-gcp logs into Alloy, so a lot of the metadata is unpopulated, it does not complain. I am not sure what issues it is having under the hood by doing this, and if changes later on could break this behaviour.

It would more ideal if we could have just a native receiver for pubsub which could fetch other JSON payloads(other formats could be supported), and not have any of the gcp log processing logic.

It could even make sense to make the gcp-log processing into its own node, but that maybe more of a breaking change.

@owenhaynes owenhaynes added the enhancement New feature or request label Dec 11, 2024
@ptodev
Copy link
Contributor

ptodev commented Dec 11, 2024

Hello! Would the OTel Google Pubsub Receiver resolve your issue? We could port it over as an otelcol component.

@owenhaynes
Copy link
Author

yes that would work

@ptodev
Copy link
Contributor

ptodev commented Dec 11, 2024

I'd be happy for us to incorporate it. I just don't know if (and when) the Alloy dev team would have time to work on it. In the meantime, if anyone is interested in submitting a PR then I'd be happy to review it. This could also be a community component similar to the Splunk exporter.

@owenhaynes
Copy link
Author

If I get time over the next few weeks, I will give this a shot, does not look to difficult to integrate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants