ansible icon indicating copy to clipboard operation
ansible copied to clipboard

Blackbox_exporter - Add a check config condition

Open Choquito29 opened this issue 1 year ago • 0 comments

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..."

Choquito29 avatar Aug 22 '23 09:08 Choquito29