Proposal
This is a follow up to #5445 which was closed due to inactivity.
The latest version of InfluxDB v3 (Core/Enterprise/Clustered/Cloud) is a new implementation of InfluxDB that does not support the Flux query language. Instead InfluxDB v3 supports either InfluxQL or SQL. InfluxDB v3 went GA on Apr 15th 2025.
There are some key differences in v3, such as the removal of organisations and buckets and the addition of databases. InfluxDB v3 support can be added by either:
- Updating the existing InfluxDB scaler by providing a toggle to switch the query language and Influx version.
- Building a new scaler that specifically targets v3 with support for InfluxQL and SQL.
An InfluxDB v3 client requiers the following in order to complete a query and extract a metric:
ServerURL
DatabaseName
AuthToken
QueryType - either InfluxQL or FlightSQL
MetricKey - Results from InfluxDB v3 are provided via a map[string]interface{}. To extract the metrics value a key is needed to access to the map value. For example: SELECT value FROM stat WHERE time >= now() - 30s ORDER BY time DESC LIMIT 1 -> the MetricKey is value.
Query - The query string.
If the maintainers have a preference between the two above options please let me know. I have a working implementation of option 1, but can easily switch it to option 2.
Scaler Source
Time series metrics from InfluxDB version 3
Scaling Mechanics
InfluxQL or SQL query against an INfluxDB v3 server.
Authentication Source
API Token
Anything else?
No response
Proposal
This is a follow up to #5445 which was closed due to inactivity.
The latest version of InfluxDB v3 (Core/Enterprise/Clustered/Cloud) is a new implementation of InfluxDB that does not support the Flux query language. Instead InfluxDB v3 supports either
InfluxQLorSQL. InfluxDB v3 went GA on Apr 15th 2025.There are some key differences in v3, such as the removal of
organisationsandbucketsand the addition ofdatabases. InfluxDB v3 support can be added by either:An InfluxDB v3 client requiers the following in order to complete a query and extract a metric:
ServerURLDatabaseNameAuthTokenQueryType- eitherInfluxQLorFlightSQLMetricKey- Results from InfluxDB v3 are provided via amap[string]interface{}. To extract the metrics value akeyis needed to access to the map value. For example:SELECT value FROM stat WHERE time >= now() - 30s ORDER BY time DESC LIMIT 1-> theMetricKeyisvalue.Query- The query string.If the maintainers have a preference between the two above options please let me know. I have a working implementation of option 1, but can easily switch it to option 2.
Scaler Source
Time series metrics from InfluxDB version 3
Scaling Mechanics
InfluxQL or SQL query against an INfluxDB v3 server.
Authentication Source
API Token
Anything else?
No response