Altinity / clickhouse-grafana

Altinity Grafana datasource plugin for ClickHouse®
MIT License
715 stars 120 forks source link

Ability to set a default column names for the primary time column in the datasource config. for Date and Timestamp, This would be used by the $timeFilter etc. macros unless overridden in the query builder #495

Closed Slach closed 2 months ago

Slach commented 10 months ago

add to ConfigEditor

oplehto commented 4 months ago

What would be really fantastic would be to able to define multiple default time columns which could be used in order of precedence.

For example, if the config has _time, _time64 as default time columns then the _time column would be used if found (and is a suitable type). If not, then _time64 would be searched for. In case both columns are present, then the first one in the list would be used.

Slach commented 3 months ago

What would be really fantastic would be to able to define multiple default time columns which could be used in order of precedence.

@oplehto No, it will define only only one field for each related field type per connection