Inserting Data to the OpenTSDB Table

Function

Run the INSERT INTO statement to insert the data in the DLI table to the associated OpenTSDB metric.

If no metric exists on the OpenTSDB, a new metric is automatically created on the OpenTSDB when data is inserted.

Syntax

1
INSERT INTO TABLE TABLE_NAME SELECT * FROM DLI_TABLE;
1
INSERT INTO TABLE TABLE_NAME VALUES(XXX);

Keywords

Table 1 INSERT INTO keywords

Parameter

Description

TABLE_NAME

Name of the associated OpenTSDB table.

DLI_TABLE

Name of the DLI table created.

Precautions

Example

1
INSERT INTO TABLE opentsdb_table VALUES('xxx','xxx','2018-05-03 00:00:00',21);