summaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/harvester-config.json
blob: da9d6e45d2f0b7249f3759a371fcc89c8dbbe4f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
  "metadata": {
    "uid": "Harvester",
    "version": "1.0",
    "api": "harvester",
    "info": "Data collection binding"
  },
  "plugins": [
    {
      "uid": "influxdb",
      "info": "Plugins that handle influxdb read and write",
      "libs": "influxdb.ctlso",
      "params": {
        "host": "localhost",
        "port": 8086
      }
    }
  ],
  "onload": [
    {
      "uid": "init_db",
      "info": "Ensure that InfluxDB is up",
      "action": "plugin://influxdb#influxdb_ping",
    }
  ],
  "controls": [
    {
      "uid": "write",
      "action": "plugin://influxdb#write_to_influxdb"
    }
  ]
}