if possible can you provide me with an example for the files_sd?
I am trying the below steps
in Blackbox, I configured the below JSON
and I tried to run ./ black_exporter --config.file=websites.json but it's not working and I am getting the below error
ts=2022-06-23T20:12:52.331Z caller=main.go:255 level=info msg="Starting blackbox_exporter" version="(version=0.21.0, branch=HEAD, revision=148a9de0681062f9680bd
239d16d4a92678b4bc8)"ts=2022-06-23T20:12:52.332Z caller=main.go:256 level=info build_context="(go=go1.18.2, user=root@340341332f2f, date=20220530-12:48:35)"ts=2022-06-23T20:12:52.332Z caller=main.go:259 level=error msg="Error loading config" err="error parsing config file: yaml: unmarshal errors:\n line 1: cannotunmarshal !!seq into config.plain"
I guess I am doing terribly wrong but and my apologies for that because i am entirely new to this, could you please correct me where I am doing in Blackbox Exporter
Currently, I am running the below YAML and it's working fine
modules:
http_2xx:
prober: http
timeout: 5s
http:
valid_http_versions: ["HTTP/1.1", "HTTP/2.0"]
valid_status_codes: [] # Defaults to 2xx
method: GET