Releases: grafana/clickhouse-datasource
Releases · grafana/clickhouse-datasource
grafana-clickhouse-datasource v4.0.1
4.0.1
Fixes
- Set
protocol
tonative
by default in config view. Fixes the "default port" description.
grafana-clickhouse-datasource v4.0.0
4.0.0
Features
Version 4.0.0 contains major revisions to the query builder and datasource configuration settings.
Query Builder
- Completely rebuilt query builder to have specialized editors for Table, Logs, Time Series, and Traces.
- Completely rebuilt SQL generator to support more complicated and dynamic queries.
- Updated query builder options structure to be clearer and support more complex queries.
- Updated database/table selector to be in a more convenient location. Database and table options are automatically selected on initial load.
- Upgraded query builder state management so queries stay consistent when saving/editing/sharing queries.
- Separated Table and Time Series query builders. Table view operates as a catch-all for queries that don't fit the other query types.
- Combined "format" into the query type switcher for simplicity. The query tab now changes the builder view and the display format when on the Explore page. This includes the raw SQL editor.
- Added an OTEL switch for logs and trace views. This will allow for quicker query building for those using the OTEL exporter for ClickHouse.
- Updated Time Series query builder with dedicated Time column. Default filters are added on-load.
- Added an
IS ANYTHING
filter that acts as a placeholder for easily editing later (useful for query templates/bookmarks on the Explore page.) - Added better support for Map types on the Filter editor.
- LIMIT editor can now be set to 0 to be excluded from the query.
- Table and Time Series views now have a simple / aggregate mode, depending on the query complexity.
- Updated the logs histogram query to use the new query builder options and column hints.
- Added Logs query builder with dedicated Time, Level, and Message columns. Includes OTEL switch for automatically loading OTEL schema columns. Default filters are added on-load.
- Added Trace query builder with dedicated trace columns. Includes OTEL switch for automatically loading OTEL schema columns. Default filters are added on-load.
- Updated data panel filtering to append filters with column hints. Visible in logs view when filtering by a specific level. Instead of referencing a column by name, it will use its hint.
- Order By now lists aggregates by their full name + alias.
- Order By column allows for custom value to be typed in.
- Aggregate column name allows for custom value to be typed in.
- Filter editor allows for custom column names to be typed in.
- Increased width of filter value text input.
- Columns with the
Map*
type now show a[]
at the end to indicate they are complex types. For example,SpanAttributes[]
. - Filter editor now has a dedicated field for map key. You can now select a map column and its key separately. For example,
SpanAttributes['key']
. - Map types now load a sample of options when editing the
key
for the map. This doesn't include all unique values, but for most datasets it should be a convenience. - Added column hints, which offers better linking across query components when working with columns and filters. For example, a filter can be added for the
Time
column, even without knowing what the time column name is yet. This enables better SQL generation that is "aware" of a column's intended use.
Plugin Backend
- Added migration logic for
v3
configs going tov4+
. This is applied when the config is loaded when building a database connection. $__timeFilter
,$__fromTime
, and$__toTime
macros now convert toDateTime64(3)
for better server-side type conversion. Also enables millisecond precision time range filtering.
Datasource Configuration
- Added migration script for
v3.x
configurations tov4+
. This runs automatically when opening/saving the datasource configuration. - Renamed config value
server
tohost
. - Renamed config value
timeout
to the more specificdial_timeout
. - Updated labeling for port selection. The default port will now change depending on native/http and secure/unsecure setting.
- Rearranged fields and sections to flow better for initial setup of a new datasource.
- Added plugin version to config data for easier config version migrations in the future.
- Added fields for setting default values for database/table.
- Added section for setting default log database/table/columns. Includes OTEL. These are used when using the log query builder.
- Added section for setting default trace database/table/columns. Includes OTEL. These are used when using the trace query builder.
- Added OTEL switches for logs/traces for quicker query building. OTEL defaults to the latest version, and will auto update if kept on this setting.
- Increased width of inputs for typically long values (server URL, path, etc.)
- Allow adding custom HTTP headers with either plain text or secure credentials. #633
- Add
path
setting to specify an additional URL path when using the HTTP protocol. #512
Fixes
- Queries will now remain consistent when reloading/editing a previously saved query.
- Fixed default Ad-Hoc filters. #650
- Fixed Ad-Hoc filters parsing numeric fields. #629
- Fixed majority of usability quirks with redesigned query builder.
Upgrades
- Updated all dependencies to latest compatible versions (Includes Dependabot PRs)
grafana-clickhouse-datasource v4.0.0-beta
grafana-clickhouse-datasource v3.3.0
3.3.0
Features
- Support Point geo data type.
Fixes
- Fix timeInterval_ms macro.
- Fix Table summary and Parts over time panels in Data Analysis dashboard.
Upgrades
- Upgrade grafana-plugin-sdk-go.
grafana-clickhouse-datasource v3.2.0
3.2.0
Features
- Add
timeInterval_ms
macro to allow higher precision queries on DateTime64 columns. #462.
Fixes
- Ensure databases, tables, and columns are escaped correctly. #460.
- Fix conditionAll handling. #459.
- Fix support for ad-hoc regexp filters:
=~
,!~
#414. - Do not create malformed adhoc filters #451. invalid values will be ignored.
- Fix auto formatting by reverting to table correctly. #469.
- Fix parsing of numeric configuration values in
yaml
file. #456.
grafana-clickhouse-datasource v3.1.0
3.1.0
- Stable release of v3.0.4-beta
grafana-clickhouse-datasource v3.0.4-beta
3.0.4-beta
- Update Grafana dependencies to >=v9.0.0
- Feature - Add support for the secure socks proxy
grafana-clickhouse-datasource v3.0.3-beta
3.0.3-beta
- Update ClickHouse driver to v2.9.2
grafana-clickhouse-datasource v2.2.1
2.2.1
- Chore - Backend binaries compiled with latest go version 1.20.4
- Custom ClickHouse settings can be set in data source settings. Allow passing custom ClickHouse settings in datasource
grafana-clickhouse-datasource v3.0.2-beta
3.0.2-beta
- Custom ClickHouse settings can be set in data source settings. Allow passing custom ClickHouse settings in datasource
- Histogram UI fixes Histogram UI fixes
- Support filter/filter out logs view actions
- Fix undefined database name by default
- Reset level and time field properly on table/database change
- Make it possible to clear the level field (so the histogram will render without grouping by level)
- Fix filter value that gets stuck in the UI
- Tracing dashboard added to default dashboards. Tracing dashboard