query
Execute read-only InfluxQL queries on InfluxDB databases to explore time-series data. Supports SELECT and SHOW statements, with write operations blocked.
Instructions
Execute a read-only InfluxQL query against a database.
Only SELECT and SHOW statements are allowed. Write operations are blocked.
Args: database: Name of the InfluxDB database to query. influxql: The InfluxQL query to execute (e.g. SELECT * FROM cpu LIMIT 10). epoch: Timestamp precision in the response (ns, u, ms, s, m, h). Default: ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epoch | No | ms | |
| database | Yes | ||
| influxql | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |