I have a blackbox entry like:
* http_post_2xx_basics:*
* prober: http*
* timeout: 5s*
* http:*
* headers:*
* User-Agent: "blackbox-monitoring"*
* Content-Type: "application/json"*
* Accept: "application/json"*
* Private-ApiKey: "myAPIKey"*
* Body: '{"some_arrangements": [{"arrangement_number":
"0004074331","administration_code": "1006"}]}'*
* valid_status_codes:*
* - 200*
* method: POST*
And i call the entry via prometheus scrape:
* - job_name: blackbox_api_basics*
* scrape_interval: 60s*
* metrics_path: /probe*
* params:*
* module: [http_post_2xx_basics]*
* static_configs:*
* - targets:
['https://my.domain.com/appl/api/products/details/basics']*
* labels:*
* name: 'Basic details'*
* relabel_configs:*
* - source_labels: [__address__]*
* target_label: __param_target*
* - source_labels: [__param_target]*
* target_label: instance*
* - target_label: __address__*
* replacement: 127.0.0.1:9115 # The blackbox exporter.*
But i always get a http 400 back.
In postman the same call returns a neat 200 ?
Is there something that needs quoting/unquoting or something?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/2a6e96e7-73f5-456d-9d2a-e9e64bd2d378n%40googlegroups.com.