Closed lastsky closed 3 weeks ago
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
any updates?
Definitely interesting but we haven’t got the time to get started on this
A related use-case is configuring multiple services on the same host, independently. That is, deploy promtail
with generic configuration, and then have each service/application install it's own promtail configuration file specific to that service.
For example, if installing haproxy
on a host (using ansible, puppet, whatever), that install process would create an /etc/promtail/conf.d/haproxy.conf
file (which would point to the haproxy log files on disk) and possibly trigger a config reload of promtail. In this way, the configuration for each individual service can be handled by the service itself, instead of having to merge all the configs into a single config that gets deployed when promtail does.
@bnewbold installing with Ansible, could you possibly make use of the assemble module to achieve the same thing?
@cyriltovena is there still a chance you might work on this feature? It would be awesome to be able to assemble a larger Promtail pipeline out of multiple files.
Prometheus did add this for their scraping config recently: https://github.com/prometheus/prometheus/issues/8543
We're currently reevaluating promtails position as a project within Grafana Labs. Internally we're actually using the Agent for both metrics and logs collection at this point. While we haven't made a formal decision yet, we expect in the near future that all new feature work will be done in the Agent's log collection pipelines rather than in Promtail.
Additionally, the Agent's Flow configuration model is component-based that supports combining multiple config files for the single agent binary.
Closing this issue as we don't develop Promtail any further. It is superseded by Grafana Alloy. Please report the issue there.
Is your feature request related to a problem? Please describe. I'm always frustrated when config file doesn't support
conf.d
ordirectory.d
style (example: https://github.com/axkibe/lsyncd/issues/441) and i need to code some 💩for automate deploy for 200+ serversDescribe the solution you'd like I want prometheus but for logs
/opt/promtail/promtail.conf:
/opt/promtail/conf.d/stage/db1.example.org.yml:
/opt/promtail/conf.d/stage/db2.example.org.yml:
/opt/promtail/conf.d/prod/web1.example.org.yml:
/opt/promtail/conf.d/prod/web2.example.org.yml:
Describe alternatives you've considered