how to configure blackbox.yml

发布时间 2023-05-09 16:24:12作者: IT老友

modules: http_2xx: prober: http http: follow_redirects: true http_post_2xx: prober: http http: method: POST follow_redirects: true headers: Content-Type: application/json body_size_limit: 10MB body: '{"task_id": "123", "biz_type": 1,"task_type":2,"source_name":"d","source_file_name":"e" }' https_2xx: prober: http timeout: 5s http: valid_http_versions: ["HTTP/1.1", "HTTP/2.0"] preferred_ip_protocol: ip4 method: GET follow_redirects: true fail_if_ssl: false fail_if_not_ssl: true tls_config: insecure_skip_verify: true https_post_2xx: prober: http timeout: 5s http: valid_http_versions: ["HTTP/1.1", "HTTP/2.0"] preferred_ip_protocol: ip4 method: POST follow_redirects: true bearer_token: '99UqKoHhhGlxR7RJdmkncadsGlT01yZILaOK8q8' fail_if_ssl: false fail_if_not_ssl: true tls_config: insecure_skip_verify: true