That doesn't match what you curl command does.
I didn't spot this before, but you have 'body' at the wrong level too. This
means:
headers:
key: abc
data: 123
Content-Type: application/json;charset=UTF-8
body: '{}'
gives four different headers, and no body. It is the same as:
curl -H "key: abc" -H "data: 123" -H "Content-Type:
application/json;charset=UTF-8" -H "body: {}" -X POST -d "" <url>
What you want to match the original curl command you showed is:
http:
method: post headers: Content-Type: application/json
body: '{"key":"abc","data":"123"}'
Note the alignment of "body" at the same level as "headers" and "method"
--
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/421ccce9-97f4-456c-b730-c5d188df03d9%40googlegroups.com.