add example to skip dns resolve and using proxy
authorAlireza (Ali) Mansoori <amansoori@gmail.com>
Wed, 27 Jul 2022 02:52:27 +0000 (19:52 -0700)
committerSuraj Nath <9503187+electron0zero@users.noreply.github.com>
Wed, 27 Jul 2022 16:23:57 +0000 (21:53 +0530)
Signed-off-by: Alireza (Ali) Mansoori <amansoori@gmail.com>
example.yml

index 2e40a02ff714ccb3637636784d47351c00cdd1c6..9bebf11524fe37f35de54de840e453cb5897aca0 100644 (file)
@@ -28,6 +28,11 @@ modules:
         insecure_skip_verify: false
       preferred_ip_protocol: "ip4" # defaults to "ip6"
       ip_protocol_fallback: false  # no fallback to "ip6"
+  http_with_proxy:
+    prober: http
+    http:
+      proxy_url: "http://127.0.0.1:3128"
+      skip_resolve_phase_with_proxy: true
   http_post_2xx:
     prober: http
     timeout: 5s