Skip to content

InfluxDB v3 Scaler #6981

@jmickey

Description

@jmickey

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:

  1. Updating the existing InfluxDB scaler by providing a toggle to switch the query language and Influx version.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready To Ship

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions