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

validate promtail config via a dedicated flag #3445

Closed
landryb opened this issue Mar 8, 2021 · 2 comments
Closed

validate promtail config via a dedicated flag #3445

landryb opened this issue Mar 8, 2021 · 2 comments
Labels
stale A stale issue or PR that will automatically be closed.

Comments

@landryb
Copy link

landryb commented Mar 8, 2021

as was done for loki in #2737 for #2713 it would be great if promtail had a flag to just validate the config file and exit (with the corresponding exit status). That would allow for seamless deployment/validation of promtail configs by ansible for example.

for example, i have this for loki:

- name: Template loki configuration
  template:
    src: config.yml.j2
    dest: /opt/loki/config.yml
    validate: "/opt/loki/loki-linux-amd64 -verify-config -config.file %s"
  notify: restart loki
@stale
Copy link

stale bot commented Jun 3, 2021

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.

@stale stale bot added stale A stale issue or PR that will automatically be closed. and removed stale A stale issue or PR that will automatically be closed. labels Jun 3, 2021
@stale
Copy link

stale bot commented Jul 9, 2021

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.

@stale stale bot added the stale A stale issue or PR that will automatically be closed. label Jul 9, 2021
@stale stale bot closed this as completed Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale A stale issue or PR that will automatically be closed.
Projects
None yet
Development

No branches or pull requests

1 participant