Write

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 protocolopen in new window.

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'
-
On this page