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

Feature Request: Add path/subpath parameter to loki output plugin #8348

Closed
PeterStolz opened this issue Jan 4, 2024 · 0 comments
Closed

Comments

@PeterStolz
Copy link

Is your feature request related to a problem? Please describe.
I use a managed instance of a grafana+loki stack from my cloud provider. Instead of giving me a subdomain for my instance I need to specify a subpath e.g. /instances/my-instance-id/ before the loki/api/v1/push. This is not supported by the current plugin as there is no path parameter and the plugin does a direct DNS lookup on the host part. Therefore I can not ingest logs with official plugins.

Describe the solution you'd like
Add a path or path_prefix parameter allowing easier integration of loki instances behind reverse proxies.

Describe alternatives you've considered
Grafana has their own loki plugin (grafana-loki), which is able to handle custom paths. The problem is that they deprecated their helm chart for fluent bit that ships with this plugin. Installing plugins in the official fluent bit helm chart is not streamlined.

Additional context
I now either need to hack the grafana-loki plugin into the helm chart or deploy a reverse proxy specifically to add a path prefix.

The code change would be fairly simple and straight forward as there is already code in place that builds the URL from the http basic auth, the hostnam, the port and the standard loki/api/v1/push.

If this feature would be accepted I will create a PR for it.
Thanks for your consideration.

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

No branches or pull requests

1 participant