Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
rnorris
Partner - Creator
Partner - Creator

Doing a POST request with a REST connector

Hi, 

We're trying to set up alerting for failed /  successful tasks, by integrating with Prometheus. 

Prometheus has a REST API, which we're trying to use to submit the alerts. 

The curl we've used successfully from a bash prompt is:

curl -XPOST URL-GOES.HERE.THIS.ALL.WORKS/job/example -d $'test_metric_2 200\n'

What's possibly of note is that without the \n the request fails. It needs a new line terminator.

When trying to create a connector in Qlik though, I can't seem to get anything to work. Basically whatever I put as the request body, I get an 'unexpected end of input stream' error. I managed to get it to create by putting the test metric as a query parameter, but then this doesn't actually 'do' anything, we don't see anything POSTed to Prometheus like we do when we run the curl.

Any ideas? Thanks guys. 

Labels (1)
0 Replies