diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2019-07-20 13:30:50 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2019-08-01 17:46:23 +0200 |
commit | 39ee05cf0fac091572a235cb23daed7bb68f5a8f (patch) | |
tree | 670b0b1c9cf6309fc07f2a59750420a6e420268c /README.md | |
parent | 310cabd8353607a0882c7dea83a8bd328d32d5c9 (diff) |
Allow to set host+port using params in config.jsonsandbox/SebD/wip
Default influxDB host and port can now be set using params field of plugins
section of harvester-config.json file.
For example :
"plugins": [
{
"uid": "influxdb",
"info": "Plugins that handle influxdb read and write",
"libs": "influxdb.ctlso",
"params": {
"host": "localhost",
"port": 8086
}
}
],
Change-Id: Iff0fffe1d0883304413d887986991a207b840aa7
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -45,6 +45,11 @@ Typical example to write in a TimeSeries DB from source project directory: ```bash $ cd build/ && /opt/AGL/bin/afb-daemon --workdir=./package --name=afb-harvester --ldpaths=lib --roothttp=. --tracereq=common --token=1 -vvv [...] + +# Test connection to TSDB +* afb-client-demo -H ws://localhost:1234/api?token=1 harvester ping + + $ afb-client-demo ws://localhost:1234/api?token=1 harvester auth ON-REPLY 1:harvester/auth: {"jtype":"afb-reply","request":{"status":"success", "uuid":"03dc89fb-88b4-4204-ba9b-13dded3c38ab"}} |