Querying an OpenTSDB Table
This SELECT command is used to query data in an OpenTSDB table.
- If no metric exists in OpenTSDB, an error will be reported when the corresponding table is queried.
- If the security mode is enabled, you need to set conf:dli.sql.mrs.opentsdb.ssl.enabled to true when connecting to OpenTSDB.
Syntax
1
|
SELECT * FROM table_name LIMIT number; |
Keyword
LIMIT is used to limit the query results. Only INT type is supported by the number parameter.
Precautions
The table to be queried must exist. Otherwise, an error is reported.
Example
Query data in the opentsdb_table table.
1
|
SELECT * FROM opentsdb_table limit 100; |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot