Hi , I tried to use module http_post_2xx but seems it does not work ,instead http_2xx is being used.I dont how ,in module section i have mentioned http_post_2xx :
Prometheus.yml : - job_name: 'Monitorining' metrics_path: /probe params: module: [http_post_2xx] static_configs: - targets: - https://--------------- relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: localhost:9115 # blackbox exporter blackbox.yml: modules: http_2xx: prober: http http: valid_http_versions: ["HTTP/1.1", "HTTP/2"] valid_status_codes: [] # Defaults to 2xx method: GET http_post_2xx: prober: http timeout: 5s http: valid_status_codes: [200,301] method: POST headers: Host: "----------------" Cache-Control: no-cache Content-Type: application/json basic_auth: username: '------------' password: '-------------' Error: curl -s "localhost:9115/probe?module=http_post_2xx&target=https://----------------------&debug=true" | grep -v \# Unknown module "http_post_2xx" Please suggest. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/30d7cd83-0b0e-4313-8bb0-3a86a652f770%40googlegroups.com.