
Trying for http checks for my docker-services.
- job_name: 'blackbox'
metrics_path: /probe
params:
module: [http_2xx]
static_configs:
- targets:
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
blackbox.yml:
modules:
http_2xx_example:
prober: http
timeout: 5s
http:
method: GET
#protocol: "tcp4"
preferred_ip_protocol: "ip4"
http_post_2xx:
prober: http
timeout: 5s
http:
method: POST
headers:
Content-Type: application/json
body: '{}'
tcp_connect:
prober: tcp
timeout: 5s
icmp:
prober: icmp
timeout: 5s
PFA image for reference.
Can someone help me on this please ?
Thanks in advance.
