
InfluxQLQuery
InfluxQLQuery
yaml
type: "io.kestra.plugin.influxdb.InfluxQLQuery"Examples
yaml
id: influxdb_query
namespace: company.team
tasks:
- id: query_influxdb
type: io.kestra.plugin.influxdb.InfluxQLQuery
connection:
url: "{{ secret('INFLUXDB_URL') }}"
token: "{{ secret('INFLUXDB_TOKEN') }}"
org: "my-org"
query: "SELECT * FROM measurement WHERE time > now() - 1h"
fetchType: FETCH
yaml
id: influxdb_query_to_file
namespace: company.team
tasks:
- id: query_to_file
type: io.kestra.plugin.influxdb.InfluxQLQuery
connection:
url: "{{ secret('INFLUXDB_URL') }}"
token: "{{ secret('INFLUXDB_TOKEN') }}"
org: "my-org"
query: "SELECT * FROM measurement WHERE time > now() - 1h"
fetchType: ION
Properties
connection*RequiredNon-dynamic
Definitions
io.kestra.plugin.influxdb.InfluxDBConnection
token*Requiredstring
url*Requiredstring
connectTimeoutstring
Default
PT10SFormat
durationreadTimeoutstring
Default
PT10SFormat
durationorg*Requiredstring
query*Requiredstring
bucketstring
fetchTypestring
Default
NONEPossible Values
STOREFETCHFETCH_ONENONEOutputs
rowobject
rowsarray
SubTypeobject
sizeinteger
totalinteger
uristring
Format
uriMetrics
recordscounter
Unit
count