LinDB on GitHub
  1. Api
  2. Insert

Ingest

Write metric data, support flat buffer/proto buffer/InfluxDB.

Support content-type as below:

  • application/flatbuffer
  • application/protobuf
  • application/influx

Support content-encoding as below:

  • gzip

Recommend to use LinDB client write data.

PUT|PUST /api/v1/write

Parameters:

AttributeTypeDescription
dbstringDatabase name.
nsstringNamespace, default value: default-ns.

Body:

Metric Data

Example request(InfluxDB):

For more information about InfluxDB line protocol.

Terminal
curl -XPOST --header "Content-Type: application/influx" http://localhost:9000/api/v1/write?db=_internal --data-binary 'host.cpu,host=192.169.0.1 value=12'
Previous
Introduction
Next
Query