LinDB on GitHub
  1. Api
  2. 数据写入

Ingest

写指标数据,支持 flat buffer/proto buffer/InfluxDB

支持 content-type 如下;

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

支持 content-encoding 如下;

  • gzip

建议 客户端SDK 写数据。

PUT|PUST /api/v1/write

参数:

参数类型描述
dbstring数据库名
nsstringNamespace,默认为: default-ns

Body:

Metric Data

Example request(InfluxDB):

更多关于 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
介绍