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

Blackbox_exporter - Add a check config condition #203

Open
Choquito29 opened this issue Aug 22, 2023 · 0 comments
Open

Blackbox_exporter - Add a check config condition #203

Choquito29 opened this issue Aug 22, 2023 · 0 comments

Comments

@Choquito29
Copy link

Would it be possible to add a task that would check that :

  • The blackbox_exporter.yml configuration imported is correct before resuming actions and starting service
    • If yes, resume actions
    • Otherwise, stop actions

So far, this is possible by launching /usr/local/bin/blackbox_exporter --config.check --config.file="/etc/blackbox_exporter.yml"
Output of this cmd looks like below :
ts=2023-08-22T09:40:19.081Z caller=main.go:87 level=info msg="Config file is ok exiting..."

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