# ip address server will listen. default: 0.0.0.0 # ip_address: "0.0.0.0" # # port that servier will listen. default: 3030 # port: 3030 # # metrics path. default: /metrics # metrics_path: "metrics" # # targets to crawl for each request. targets: # 200 response with queries - url: "https://www.rust-lang.org/" queries: - "#language-values div.flex-none section" - "header h1" - "footer div.attribution" extra_labels: name: homepage # 404 response with queries - url: "https://www.rust-lang.org/invalid-page-with-404-response" headers: Referer: "https://www.rust-lang.org/" queries: - "div.flex" - "div" extra_labels: name: 404 page # Network error. (Queries will not return any value since they will not be running.) - url: "https://www.page-does-not-exist.io/" queries: - "div" extra_labels: name: nonexistent_page # Invalid query (return value will be 0 and css query parse error will be logged.) - url: "https://www.rust-lang.org/invalid-css-query" queries: - "**XX**" extra_labels: name: query_with_invalid_css # 200 page without any query (only response time and size will be returned.) - url: "https://www.rust-lang.org/no-css-query" # google search test example with queryparameters and extra headers. - url: "https://www.google.com/search" queryparameters: q: rust headers: referer: "https://www.google.com/" user-agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36" queries: - "div.g" extra_labels: name: google_search