Hi ,
I am using the below yaml files for testing the post api using black box exorter.
expected result is
probe_http_status_code value 200 the same thing checked using postman.
but i am getting probe_http_status_code value 415
blackbox. yml
http_post_2xx:
prober: http
http:
method: POST
headers:
Content-Type: application/json;
body: '{aaaa: "355987085036738",status: "Active"}
prometheus.yml
- job_name: 'checkpost'
scrape_interval: 45s
metrics_path: /probe
params:
module: [http_post_2xx] # Look for a HTTP 200 response.
static_configs:
- targets:
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__