ILP line protocol
Machbase Neo provides a compatibility api that accepts messages in a format of influxdata lineprotocol for writing data. This api is convenient way to utilize existing client softwares that produce lineprotocol messages (e.g telegraf).
📢
Since Machbase has a different scheme from influxdb, some translations will be automatically occurred.
Translation
| Machbase | line protocol of influxdb |
|---|---|
| table | db |
| tag name | measurement + . + field name |
| time | timestamp |
| value | value of the field (if it is not a number type, will be ignored and not inserted) |
Line protocol example
```http
POST http://127.0.0.1:5654/metrics/write?db=tagdata
my-car speed=87.6 167038034500000
```curl -o - -X POST "http://127.0.0.1:5654/metrics/write?db=tagdata" \
--data-binary 'my-car speed=87.6 167038034500000'This example inserts data into table tagdata with name=‘my-car.speed’, value=87.6 and time=167038034500000
telegraf.conf example
As set telegraf’s output config to use http port of Machbase Neo, the metrics that collected by telegraf are directly inserted into Machbase Neo.
[[outputs.http]]
url = "http://127.0.0.1:5654/metrics/write?db=tagdata"
data_format = "influx"
content_encoding = "gzip"Last updated on