-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Allow no loki client configuration in Promtail #6992
Comments
@yeya24 You can use the clients:
- url: http://localhost:3100/loki/api/v1/push Would that help? |
This will send logs to a non exist destination, right? |
No, when using I don't really like the idea of allowing no clients, because for almost all use cases you want to send logs, and therefore it should raise an error when there is no client configured. |
I'd like to chime in. We currently have the same requirement as the original poster. We are only interested in generating metrics from logs without the involvment of a loki server. So a dedicated option to run promtail without any log shipping would be a very welcomed functionality. |
Is your feature request related to a problem? Please describe.
My use case for promtail is not sending logs to Loki. I use promtail to only generate metrics from logs.
In my scenario, there is no need to send logs to Loki. But Promtail itself doesn't allow no Loki client configuration specified.
Describe the solution you'd like
Allow promtail to configure no Loki client.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: