Interface to InfluxDB : Writing data with the InfluxDB API

41 views
Skip to first unread message

Norbert Schlemmer

unread,
Nov 2, 2019, 11:49:25 AM11/2/19
to VA Smalltalk
Hello

has anybody implemented the InfluxDB HTTP API in Smalltalk? Maybe there is an example available ?

How can this "write data" example be done in VAST using SstHttpClient or SstHttpUrl ?

curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000'

Thanks
Norbert

Hans-Martin Mosner

unread,
Nov 19, 2019, 8:15:00 AM11/19/19
to VA Smalltalk
Try this:

'http://localhost:8086/write?db=mydb' sstAsUrl post: 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000'


Cheers,
Hans-Martin

Norbert Schlemmer

unread,
Nov 19, 2019, 9:46:32 AM11/19/19
to VA Smalltalk
Thanks Hans-Martin, works perfect!

In the meantime I got the UDP interface running...
Reply all
Reply to author
Forward
0 new messages