Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTTP POST?
#1
I use Grafana and InfluxDB at work, and it's fairly quick and easy to set up for graphing time-series data (especially if you have a Docker host, which I do).  I decided it might be interesting to try integrating it with CQC.  There are a few ways to get data in, and one of the more straightforward methods is by doing an HTTP POST.  Here is an example of how you would do it using curl:

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

You can also log multiple points with one call, which is much more efficient:

Code:
curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server02 value=0.67
cpu_load_short,host=server02,region=us-west value=0.55 1422568543702900257
cpu_load_short,direction=in,host=server01,region=us-west value=2.0 1422568543702900257'

I did a bit of searching in the forum but didn't immediately find anything.  Is there a way to do something like this in CQC?  If so, it would be fun to write a CML macro that runs periodically and logs various CQC device properties for graphing.
Reply


Messages In This Thread
HTTP POST? - by dlmorgan999 - 04-12-2017, 02:05 PM
RE: HTTP POST? - by wuench - 04-12-2017, 02:07 PM
RE: HTTP POST? - by dlmorgan999 - 04-12-2017, 02:10 PM
RE: HTTP POST? - by wuench - 04-12-2017, 02:16 PM
RE: HTTP POST? - by dlmorgan999 - 04-12-2017, 04:10 PM
RE: HTTP POST? - by Dean Roddey - 04-12-2017, 04:20 PM
RE: HTTP POST? - by dlmorgan999 - 04-12-2017, 04:21 PM
RE: HTTP POST? - by dlmorgan999 - 04-12-2017, 04:24 PM
RE: HTTP POST? - by Dean Roddey - 04-12-2017, 04:26 PM
RE: HTTP POST? - by Dean Roddey - 04-12-2017, 04:28 PM
RE: HTTP POST? - by dlmorgan999 - 04-12-2017, 04:41 PM
RE: HTTP POST? - by dlmorgan999 - 04-12-2017, 04:43 PM
RE: HTTP POST? - by wuench - 04-12-2017, 05:33 PM
RE: HTTP POST? - by wuench - 04-12-2017, 05:42 PM
RE: HTTP POST? - by dlmorgan999 - 04-12-2017, 06:13 PM
RE: HTTP POST? - by dlmorgan999 - 04-12-2017, 08:19 PM
RE: HTTP POST? - by znelbok - 04-13-2017, 02:14 AM
RE: HTTP POST? - by dlmorgan999 - 04-13-2017, 05:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curious About Usage Post Public Domain kblagron 17 1,881 09-24-2021, 09:00 AM
Last Post: Dean Roddey
  Get Field Value via HTTP znelbok 3 1,253 06-11-2020, 03:43 PM
Last Post: Dean Roddey
  HTTP Trigger and Parameters znelbok 1 1,007 06-11-2020, 03:41 PM
Last Post: Dean Roddey
  HTTP SendPUT simplextech 3 1,543 01-21-2020, 03:05 PM
Last Post: simplextech
  CQC HTTP Events? bjkiller 26 8,818 01-11-2020, 07:27 AM
Last Post: simplextech
  Set value via HTTP Call simplextech 2 1,246 01-07-2020, 04:39 PM
Last Post: simplextech
  HTTP Trigger Driver - see trained URL's? Shaky 1 1,705 09-15-2019, 12:25 PM
Last Post: Dean Roddey
  HTTP Get driver not working znelbok 10 5,386 08-28-2018, 10:10 AM
Last Post: Dean Roddey
  Http Post zra 17 7,067 08-05-2018, 01:55 PM
Last Post: zra
  HTTP Post zra 7 3,508 05-18-2018, 08:47 AM
Last Post: zra

Forum Jump:


Users browsing this thread: 1 Guest(s)