From 39ee05cf0fac091572a235cb23daed7bb68f5a8f Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Sat, 20 Jul 2019 13:30:50 +0200 Subject: Allow to set host+port using params in config.json 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 --- README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index b9ad44b..6f5728c 100644 --- a/README.md +++ b/README.md @@ -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"}} -- cgit 1.2.3-korg