influxdata / flux

Flux is a lightweight scripting language for querying databases (like InfluxDB) and working with data. It's part of InfluxDB 1.7 and 2.0, but can be run independently of those.
https://influxdata.com
MIT License
760 stars 152 forks source link

PromQL transpiler: allow data model configurability #1529

Open juliusv opened 4 years ago

juliusv commented 4 years ago

@pauldix mentioned at InfluxDays that the transpiler shouldn't hardcode some of its data model assumptions, specifically how all Prometheus data is grouped together, and which column is used to encode the metric name.

Currently the following is hardocded:

(This resulted from discussion on https://github.com/influxdata/telegraf/issues/4415.)

We should allow configuring the column in which the metric name is stored, and whether any other column should be set to a specific constant value (like currently for _measurement). On the InfluxDB side, this can be a per-bucket setting, which can then be used to configure the transpiler during queries for that bucket.

@pauldix Does that capture everything you meant? I can imagine other configurability options, but they would seem more arcane (e.g. not using _value for the sample value or using a different escaping scheme for special label names).

github-actions[bot] commented 6 days ago

This issue has had no recent activity and will be closed soon.