summaryrefslogtreecommitdiffstats
path: root/src/plugins/influxdb.c
AgeCommit message (Collapse)AuthorFilesLines
2019-08-01Allow to set host+port using params in config.jsonsandbox/SebD/wipSebastien Douheret1-4/+31
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>
2019-08-01Update Copyright to 2019Sebastien Douheret1-1/+1
Change-Id: I37c68670c2dcae4ef3ade5fa9579a18ff9c7b10f Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Rework how to build dest DB URLSebastien Douheret1-9/+42
Change-Id: I5a351d6e2f5750dcb39bd9feff71abe930c052bb Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Fix DEFAULT_DBHOST setting (remove double column)Sebastien Douheret1-3/+3
Bug introduced by previous commit 5de858ef8eb117fab. Change-Id: I628b8b13ddbb8dc6a672f1d5378bf496d8ef8fd1 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Add comments and re-ident codeSebastien Douheret1-1/+8
Change-Id: Ibb4636bd968d6e4fd564ab40d5cf59e5a6ec6210 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-05-24Better memory management in chained listJohann CAHIER1-23/+7
key is now managed internally, using a copy. add_elt() / add_key() now provide a 'suffix' parameter. If suffix is given, it is appended to the key. If NULL, or empty string ("") is given, nothing is appended. NOTE : value is still owned by json object. Bug-AGL: SPEC-2416 Change-Id: I624a2dd211801c2d24b2c6739f2c7536a047ea32 Signed-off-by: Johann CAHIER <johann.cahier@iot.bzh>
2019-04-01Git submodule migration to separated librariesRomain Forlot1-6/+6
- Replace controller binder functions definition with the binder ones. and remove the last used submodules to use the separated libraries. Bug-AGL: SPEC-2139 Change-Id: I0e354757dec692c13b49f02226fcf891953667f5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Don't suffix tags and fields namesSebastien Douheret1-2/+2
Change-Id: Ib6b5101a6b105f0f024777ee52d9266f34e88f46 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Fixed invalid pointer when concatenating fieldsSebastien Douheret1-97/+94
Change-Id: Ie4a3798d3b3bad3cd2c36154c2b989938e4114b4 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Improved perf (define concatenate as inline function).Sebastien Douheret1-7/+0
Change-Id: If682e464346078b7254fbc10123e82787e089011 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Fix: not retrieve timestamp from argumentsRomain Forlot1-2/+4
Change-Id: I7aaaa4c544428899d7e383b3bbd2ae29312ca15b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix logging messages.Romain Forlot1-1/+3
Change-Id: I9cc4e031947f5f8c161f8732fc049762b738d994 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Convert the binding to use the controllerRomain Forlot1-6/+50
Ease Time series DB abstraction layer by using Dyn API that implemente the API defined by the JSON schema. Change-Id: I67de4fbca10048201fdd2da683732a5f4f5b5368 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix memory leak and avoid compile warningRomain Forlot1-3/+3
Change-Id: Ib0bcba9daad456f63c0ea704e1fa87f44b6acc98 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix: filling the series lists.Romain Forlot1-6/+7
Change-Id: I9d114d61e785449d438e1455ac3e64c69aba30fe Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Externalize Curl dependency within afb-helpersRomain Forlot1-1/+30
Change-Id: I50a4c6f440730a8776f7bb5c58c756c35bca5db8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Use news wrap curl functions.Romain Forlot1-1/+1
Change-Id: Idb05592f1deca3db9017c2717a5cc77d8880da2d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Concatenation separator for curl wrap configurableRomain Forlot1-1/+1
Change-Id: I682744080325335c1228ca84486f07725636729a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fully handle array of metrics to be writen in DBRomain Forlot1-9/+6
Move a function code. Change-Id: I35a90e08e7019e634676915858aa0a666d46f711 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Improve writer/reader processingRomain Forlot1-37/+54
- Handle indefinite number and kind of tags and fields for a metric - Include only once header files - Cleaning and ordering code Change-Id: I14a4f0e6e1626971bff73ce7d9ac067bda69cfc4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Splitting code source, cleaning.Romain Forlot1-96/+14
Change-Id: I97c2a409d05ceb9babb23c23fbf818316d01419b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Introduce thread management for future reading jobRomain Forlot1-3/+7
Change-Id: I1d47aef85c4a90d10d7cd5f85c357e9e35664836 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10TSDB handling isolation.Romain Forlot1-0/+173
Isolate API from DB Backend so you could rely on different TSDB backend Change-Id: Ie74347e8175c7e0ed508f6b1e61a1c504b2a2ebb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>