metisvela / sailtrack-core

Central component of the SailTrack system, it manages connections and gathers data.
GNU General Public License v3.0
12 stars 0 forks source link

Define Influxdb data structure #2

Closed giotherobot closed 3 years ago

matteocarnelos commented 3 years ago

MQTT

Topics:

metrics/
├── boat
└── wind
sensor/
├── gps0
├── imu0
├── wind0
└── strain0
module/
├── core
├── radio
├── monitor
├── wind
├── imu
└── strain

Message:

{
    "measurement": String,
    "tag_1": String,
    "tag_2": String,
    "tag_3": ...
    "field_1": Any,
    "field_2": Any,
    "field_3": ...
}

InfluxDB v1.8

Database metrics-data

Retention policy: infinite Measurements: boat wind Tags:

Database sensor-data

Retention policy: infinite Measurements: gps0 imu0 wind0 strain0 Tags:

Database module-data

Retention policy: infinite Measurements: core radio monitor wind imu strain Tags: