Insert
Last updated on Thu Jun 20 11:40:48 2024 by stone1100
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:
Attribute | Type | Description |
---|---|---|
db | string | Database name. |
ns | string | Namespace, 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
IntroductionNext
Query