- add a full-range logs volume histogram for Explore → Logs: the datasource now implements Grafana's supplementary-query contract (
LogsVolume), so Explore runs a separate server-side aggregate over the whole time range ($timeSeriesbuckets × log level, levels detected withmultiSearchAnyon thelevel/severitycolumn,ORDER BY/LIMITof the logs query are not applied) instead of building the histogram from the firstLIMIT-ed rows and showing the "This datasource does not support full-range histograms" warning; queries without a configured timestamp column keep Grafana's old row-based histogram, queries without alevel/severitycolumn get a singlecount()series, fix #782 - add per-field "Advanced logs fields" settings for logs queries: configure how complex ClickHouse columns (
Map,Array,Tuple,JSON,Dynamic,Variant) are rendered in the Logs panel —expand(one label per nested key, with per-field depth 1–4/All for nested types; the default depth is 1, matching previous releases so upgrades do not change label shapes),single(whole value as one label),hide, orraw(appended to the message body); the modal shows a live tree preview built from a sample row, disables Save until something changes, supports reset to defaults and marks modified fields, related to #678 - type-aware label accessors for logs:
Mapcolumns expand with bracket subscripts (col['key'], chained for nested maps),JSON/Tuple/Nestedwith dot paths (col.a.b), so every filter click produces valid ClickHouse SQL - make adhoc filters column/type-aware: introspect
system.columns(cached per datasource) to keep dot-path keys (json.a.b,tuple.field, Nestedattr.key) as column expressions of the current table, quote values by column type (e.g.Map(String, String)values are always quoted, numeric leaves stay unquoted) and emit ClickHouse array literals only forArraycolumns; falls back to the legacy behavior whenever introspection is unavailable - upgrade frontend to
@grafana/data|ui|runtime13.3.0 and refresh JS/Go dependencies (qs,dompurify,zod,handlebars,source-map-js,go.opentelemetry.io/otel/sdk1.47.0,pillow13.0.0 in testflows) to fix security alerts - raise unit test coverage: backend (Go) 56% -> 92%, frontend (Jest) 39% -> 92% — 663 frontend tests (was 310) and ~350 new Go cases, frontend coverage ratchet bumped in
jest.config.js(stmts 32 -> 90, branches 31 -> 88, funcs 21 -> 80, lines 32 -> 90), #930 - test infrastructure: bump testflows to 2.5.1 for Python 3.14 on ubuntu-26.04 runners, drop the host
ffmpegapt install in favor ofopencv-python-headless, and stabilize flaky e2e tests (retry annotations screenshot compare on transient GrafanaSQLITE_BUSY, wait for any dashboard link in the dashboards list, match the panel alert state icon as a link on Grafana 13.3) - preserve big-number precision for
UInt64/Int64above 2^53:output_format_json_quote_64bit_integers=1is applied to logs queries only (no time series regression, see #832), adhoc array literals parse numbers withjson.Numberand format elements by the column's ELEMENT type — string-serializedUInt64elements become bare numerics forArray(UInt64)columns, numeric-looking strings stay quoted forArray(String)columns
-
fix backend plugin crash for all users from a single malformed query:
dateColDataType/dateTimeColDataTypeare escaped withregexp.QuoteMetaand compiled withregexp.Compile(an error is returned instead of a panic), query goroutines recover from panics and return an error for that query only, malformedFloatvalues and$columns-style tuples no longer panic, non-stringhttpHeaderName*settings are rejected with an error -
keep backend Error-level logs short: ClickHouse non-200 bodies and unparsable JSON responses are logged at Debug level only,
CheckHealthreturns fixed user-friendly messages and logs the underlying error -
prefix the browser
sessionStoragecleanup key with the plugin ID -
README: drop the setup notes for unsigned plugin versions before 2.2.0, move the remaining legacy version notes to
docs/legacy-setup-notes.md -
test infrastructure: Grafana waits for ClickHouse init scripts via a
service_healthyhealthcheck, the logs volume histogram test flushes onlysystem.query_log -
fix Logs panel labels being attributed to the wrong rows when an expand-mode
Map/JSONvalue is empty for some rows -
fix adhoc filter values being corrupted: trailing text after a JSON-array prefix is no longer swallowed into an array literal, the legacy passthrough for pre-quoted / IN-list values is restored, and fully-qualified keys addressed to other tables are dropped again even when their first segment collides with a column name
-
fix responses being paired with hidden/empty targets in mixed panels (wrong format/refId applied to the visible query)
-
fix column-type cache leaking between multiple ClickHouse datasources within one Grafana process
-
fix query results being rejected by Grafana SQL expressions / transformations — a result without a time column is now returned as a single table frame with columns in
SELECTorder (instead of one frame per column), and multi-series time results declare thetimeseries-multiframe type, fix #820 -
fix ad-hoc filter application stripping commas from multi-value SQL
INlists during AST re-formatting, fix #941 -
fix numeric-looking ad-hoc filter values being emitted unquoted when the column type is unknown, fix #794
-
fix template variable dropdown rendering empty labels for options whose value is a JSON array/object, fix #781
-
fix follow-up issues with the 3.5.0 datasource-level data links: links attached to log rows are now carried through the "Show context" view, incomplete link configurations are skipped at apply time instead of breaking the panel, ClickHouse-target links inherit the source query's database / table / timestamp settings so
$timeFilterand other macros expand as in the source query, and the data-link plumbing is typed instead ofany, closes #432, closes #645, #904 -
fix query template variables failing entirely on Grafana >= 13.2 —
templateSrv.replace()threwSceneObject root is not a DashboardScenewhen a query containing the$__dashboardmacro ran from the variable editor modal; the macro is now dropped and the rest interpolated (safeTemplateReplace); also fix stale "Show generated SQL" output caused by out-of-order backendreplace()responses, #935 -
add regression e2e coverage for XY chart visualization from
tableformat results (#793); make thexy_chartdocker init schema idempotent
- minimal supported Grafana version bumped to 12.3.0 (
grafanaDependency: ">=12.3.0"), frontend migrated to@grafana/data|runtime|ui13.x
- add datasource-level data links for cross-datasource navigation, modelled after Elasticsearch and Loki — configured in Connections → ClickHouse → Data Links or via YAML provisioning (
jsonData.dataLinks), closes #432, partially addresses #645- each link is attached by exact column name to results of
logs,traces,time_series, orflamegraphqueries - any datasource is a valid target (ClickHouse, Loki, Prometheus, Tempo, ...) — when the target is this plugin, the produced query shape adapts automatically
- ClickHouse-target link queries inherit the source query's database / table / timestamp column settings and open in the SQL editor, so
$timeFilterand the other settings-driven macros expand in the target exactly as in the source panel instead of"" >= toDateTime(...) External URLmode supports plain HTTP links (Jaeger UI, runbooks, GitHub, custom dashboards) with${__value.raw}and other Grafana variables interpolated at click time- on the
logsformat, columns referenced by a data link are auto-promoted to top-level DataFrame fields —fieldName: trace_idworks without aliasing the column in the SELECT traces-format CH links auto-injectpanelsState.trace.spanIdso the Grafana TraceView scrolls to and highlights the clicked spantargetBlankis context-aware: split-pane in Explore, new tab in Dashboards / alerting- the configuration UI warns when a configured target datasource UID is missing
- supports multiple links per field and accumulates with any pre-existing
field.config.linksinstead of overwriting
- each link is attached by exact column name to results of
- fix streaming panels sharing a Grafana Live channel — the channel key was derived only from the raw query, so two panels with the same SQL but different query options (format, interval, time range) received each other's frames; the key is now generated from the whole stream request, fix #924
- fix streaming window pinned to its start — the dashboard time range was captured once at subscribe time and
TimeRange.Towas never read, soFull refreshre-queried[session start, now]on every tick andDeltatrimmed its accumulator against a cutoff that never advanced, growing memory and the payload sent to the browser for as long as the dashboard stayed open; the window width is now derived from the dashboard range and both edges slide, aligned to$intervalbuckets so identical ticks still dedup by fingerprint, and trimming filters by predicate so series that left the window and rows appended out of order by backfill are dropped too, fix #928 - fix backend plugin process killed by crafted Grafana Live payloads —
streamingIntervalhad no upper bound, so it overflowedtime.Durationand madetime.NewTickerpanic unrecovered;streamingIntervalandstreamingLookbackare now clamped, a frame merge is skipped when a field type changed between ticks (a second panic of the same class), and delta validation failure returns nil instead of an error so Grafana stops reconnecting forever, fix #927 - trim and publish the streaming window while a source is silent, so panels keep scrolling with the time picker instead of freezing on the last received frame
- add streaming support for near real-time dashboards:
Streamingswitch in Query Editor withDelta(fetch only new data since last poll, requires$timeFilter) andFull refreshmodes, configurable poll interval and lookback window; implemented via short time-range polling instead ofLIVE VIEW/WINDOW VIEW, fix #429 - honest frontend coverage numbers (coverage denominator pinned to the whole
src/, threshold ratchet to fail CI on silent drops) and full Coveralls reporting for both Go and frontend parts, fix #785 - run testflows e2e suites against fixed Grafana 13.1.0 and
latestin parallel job groups, fix #908, fix #786 - add e2e coverage for the autocomplete permission bubble when connection user has limited access, fix #816
- stabilize testflows suite: replace the flaky
gh-apiexternal datasource withgh-play(play.clickhouse.com), use provisioned datasources instead of UI creation, re-anchor selectors on stabledata-testid/aria-labelinstead of hashed Emotion classes, adapt to Grafana 13.1 UI - upgrade JS and Go dependencies to fix security alerts (dompurify, @grafana/runtime, immutable, postcss, fast-uri, protobufjs, protocol-buffers-schema, websocket-driver, google.golang.org/grpc, pillow)
- fix UInt64/Int64 values still rounded on JS side — ClickHouse >= 25.8 changed
output_format_json_quote_64bit_integersdefault from 1 to 0, soJSON.parseinside Grafana'sbackendSrvrounded big integers before the plugin saw them (11189782786942380395shown as11189782786942380000); responses are now fetched as raw text and parsed losslessly withlossless-json, which also works forreadonly=1users where per-request settings are forbidden, fix #832, related to ClickHouse/ClickHouse#86553 - fix breaking change in 3.4.x when constant and plain template variables were single-quoted in identifier positions (
FROM,JOIN,INTO,TO,TABLE) producing invalid SQL likeFROM 'db.table', now such positions interpolate raw whileIN/ tuple context keeps quoting; also fixTypeErrorcrash onnullvalues of variables without config, fix #905 - fix ClickHouse
#and#!line comments silently corrupting or truncating queries in the SQL tokenizer, AST comment preservation and comment stripping, add syntax highlight for them in the Monaco editor, fix #610 - fix
$conditionalTestdropping commas insideSQL_if— the 2- vs 3-parameter form was decided by counting top-level commas, so leading-comma ($conditionalTest(, expr, $var)), trailing-comma and quoted-comma (AND t = 'a,b') idioms produced broken SQL; the comma scan is now quote- and backslash-aware and\,is supported as an explicit escape, regression of #726, thanks https://github.com/oplehto - fix Grafana plugin validator security scan findings: pin transitive
js-yamlto 3.15.0 / 4.3.0 via npm overrides (CVE-2026-59869, quadratic CPU on YAML merge-key chains), rename theonJoinTokenReregex constant so gosec G101 no longer reports it as hardcoded credentials, and read thequery_debuggerinput file through anos.Rootscoped to the working directory (gosec G703/G304 path traversal) - fix autocomplete permission errors not classified when Grafana <= 12.4 drops the
text/plainClickHouse error body and the permission bubble never showed — the autocomplete query is retried once withSETTINGS http_write_exception_in_output_format=1soACCESS_DENIEDis reported as a JSONexceptionfield, related to #816
- fix "Show Context" for logs generating SQL with
UNKNOWN_IDENTIFIERerrors when the original query has WHERE conditions on non-timestamp columns (e.g.,facility,node,level), move WHERE conditions from outer query into inner subquery, fix #706 - fix alerting not firing properly via Private Data Source Connect (PDC) in Grafana Cloud with
i/o timeoutanddatasourceError (data source not found), change backend plugin mode fromServetoManage, fix #873, fix #878
- bump lodash from 4.17.23 to 4.18.1 to fix security vulnerability
- fix panic when Grafana executes alert evaluation or when plotting time series using Math Operation, fix #859, fix #860
- fix
$conditionalTestmacro with 3 parameters (else branch) producing wrong results, fix #869 - fix
$stepmacro not being expanded, fix #864 - fix
$__searchFilternot working in template variable queries withVariableSupportType.Custom - fix regression when not displaying time series in format time + category + value, broken in 3.4.9, fix #871
- fix traces panel crash in Grafana >=10.2 caused by mixed-trace DataFrames breaking critical path computation, group spans by traceID into separate DataFrames
- fix
$adhocmacro being replaced by Grafana'stemplateSrv.replace()when an adhoc variable named "adhoc" exists, regression of #422 - fix worldmap panel broken in Grafana 12.x, migrate from deprecated
grafana-worldmap-panelto native geomap type - fix UInt64 columns incorrectly typed as 'string' in
toTableresponse format, now checks actual values withisSafeInteger()and types as 'number' when all values fit within JS safe integer range - fix spanID/parentSpanID conversion to strings to handle ClickHouse UInt64 values exceeding
Number.MAX_SAFE_INTEGER
- switch to go 1.26
- fix all security transitive dependencies
- upgrade JS libraries to latest versions
- update GitHub Actions to latest versions
- redesign flamegraph and tracing dashboard following the grafana/clickhouse-datasource pattern: Trace Search table with data links + single-trace Trace Detail panel with template variable
- multiple improvements to e2e testflows coverage: worldmap, flamegraph, tracing, adhoc, limited_access, search_filter suites
- fix UInt64 values rounded on JS side due to JSON parsing precision loss, add
output_format_json_quote_64bit_integers=1setting, fix #832, related to ClickHouse/ClickHouse#86553 - fix
WHERE id IN [$multi_value_template_variable]producing double brackets[[xxx,yyy,zzz]]instead of[xxx,yyy,zzz], fix #838 - fix single quotes missing in
$conditionalTestmacro, fix #847 - fix sending empty query
FORMAT JSONon new dashboard creation, fix #837 - fix saving editor mode state (SQL Editor / Query Settings) between dashboard reloads, fix #835
- fix absent user data in datasource settings, fix #836
- switch to go 1.25
- fix all security transitive dependencies
- fix quoting corner cases, fix #829
- switch from LocalStorage to IndexedDB for cache Auto-complete data, fix #802
- add more informative error message when clickhouse connection user doesn't have access to system.* tables, fix #813
- add more informative error message bubble for SQL and HTTP errors, fix #821
- fix corner cases for ahdoc filters when adhoc use datasource from other template variable, fix #805, affected 3.4.0+
- fix corner cases when adhoc filters didn't replace, fix #804, affected 3.4.0+
- fix corner cases when template variables have same name with macros like
$table, add more informative warning message, fix #815, affected 3.4.0+ - refactoring SQL parsing to properly replace template variable values like
LIMIT $limit, fix #810, affected 3.4.0+ - fix error when template variable name ignored in step field, fix #803, affected 3.4.0+
- fix error for template variable wrong expansion, fix #797, affected 3.4.0+
- fix IN clause no longer works (3.4.x) with output of ARRAY JOIN, fix #799
- fix corner cases for template variable expansion, fix #797
- upgrade pbkdf2 from 3.1.2 to 3.1.3, to fix CVE
- migrate from gopherjs to resource handlers for processing SQL with macros on backend
- switch to gopherjs instead of wasm for process SQL with macros on browser
- add query editor with syntax highlight and error handling to template variables UI, fix #614
- move query parsing code to golang-only, now we use WASM on frontend, fix #688
- improve Map(String, anytype) fields in logs panel, will convert as labels and allow adhoc filtering by
+and-buttons, fix #634 - add
$lttband$lttbMsmacros to allow show down-sampled time series which will contains more outliers than avg or other kind of aggregation, fix #500 - add UI option
Nullify sparse datawith this option, for multi-category requests, if some category miss value for some timestamp in response, then fill it as null, fix #778 - pass WHERE filters for context window query in logs visualization, fix #706
- re-implements flamegraph visualization, now
selfcalculates properly, fix #725 - add else condition to
$conditionalTestmacros, fix #661 - multiple improvements e2e test with modern Grafana 11.x fixes and more cases coverage, thanks https://github.com/antip00
- implements time-series result parsing for format
DateTime-related type, category, metric valuewith properly time-zone parsing, fix #742 - improve support adhoc variables in logs format
- fix corner cases for dashboards with
repeat by variable valueoption, fix #712 - some improvements for syntax highlight, fix #746
- fix compatibility with new grafana 10.x table plugin, fix #764
- fix ontime datasource example, fix #763
- fix corner case for multi-value, template variables usage, fix #762
- fix corner cases
Too many points to visualize properly., for time-series visualization intime, category, valueformat, fix #705 - fix corner cases for data links, when got result with one time-series in format for multiple time-series, fix #644
- fix security alerts, fix #737
- fix corner cases for
transformationsin table format, fix #758 - fix corner cases and simplify for
$adhocmacros, fix #779
- Add using window functions instead of
runningDifferenceandneighborfor macros, to avoidallow_deprecated_error_prone_window_functions, fix #572 - Add public coverage report summary, fix #660
- Add support
DateTime(timezone)types to Annotations query, fix #642 - Add single stat panel with categories, fix #403
- Add log context windows size to connection settings, fix #657
- Add
X-ClickHouse-SSL-Certificate-Authsupport, fix #580 - Add
$columnsMsmacro, fix #430 - Add
adhoc hide table namesconnection settings option, fix #456
- Add transposed table example, fix #404
- Add "show DateTime As is" dashboard to avoid show DateTime fields in browser timezone, fix #450
- Refactoring
Logsvisualization, add "config from query result" transformation, fix #449 - Refactoring
adhocfilters, add connection option to allow hide table names from field name, fix #456 - Checked tooltip visualization in Grafana 11.x, fix #478
- Add dynamic filters to logs panel labels, fix #487, #672
- Allow change SQL for adhoc queries which select values, default query could be slow for generic use cases, depends on data, fix #330
- Allow change log context window size for Logs panel in Query Editor, fix #652
- Add coverage report, current line coverage is ~80%, fix #663
- Add logs context window size to default values in connection settings, fix #670
- Add
copybutton toGenerated SQLarea, fix #659 - Add support for the float and timestamp64(X) timestamps fix #626, fix #371
- Resolve security dependabot alerts remove unused cypress/e2e test
- extrapolation works properly on NaN
- e2e test cover more use cases
- implements support custom http headers in alerts, fix #483, thanks @addshore
- improve Logs support add Log Context and Log adhoc filters, fix #646
- improve support DateTime(timezone) more consistent, fix #625
- switch to go 1.23
- add more e2e test for unified and legacy alerts
- made e2e tests more stable
- fix corner case in AST parsing to properly count open and close brackets, fix #648
- fix bug in connection settings, when turn on
default values, then Default field values drop down selectors do not work with BasicAuth, fix #624, #632 - fix bug in connection settings, when turn on
default values, then Default field values drop down doesn't show DateTime64 fields, fix #630
- fix default values in connection editor behavior when changing fields, also change URL, fix #615
- improve e2e tests, more scenarios covered
- if query is filled then switched to Query Editor instead of Query Settings, fix #605
- remove
information_schemafrom adhoc system.columns drop down query - fix issues with
use default valuesoption in connection settings dialog, fix #600 - fix query reset error when edit multiple queries panel, fix #604
- properly handle empty response with 502 status code, fix #595
- fix wrong time series conversion when custom GROUP BY clause, fix #583
- add ability to setup default values for query builder in connection properties to avoid unnecessary duplicated UI actions, fix #495
- add example dashboard for Histogram support, fix #497
- add properly visualization for Map and JSON ClickHouse types, fix #486 and #189
- add e2e test which cover basic happy path scenarios
- fixed wrong time range reset after query editing in explore mode, fix #566
- fixed wrong behavior for $columns + subqueries, fix #565
- fixed wrong encoding messages in golang part of plugin
- fixed wrong screenshots reference in plugin.json
- fixed wrong alerts query editor behavior, fix #560 (affected 3.1.0)
- fixed syntax highlight when auto-complete items sql query failed, fix #559
- fixed drop-down fields values clean when datasource changed #561
- add additional auto-complete functions the same as
clickhouse-client, fix #509 - add support for Flamegraph and Tracing, fix #508
- enhanced support for Annotations Query builder.
- added support for HTTP Compression in Connection Settings, fix #494
- switched to go 1.22
- updated README with grafana 10 screenshots
- added $rateColumnsAggregated, $perSecondsColumnsAggregated, $increaseColumnsAggregated, $deltaColumnsAggregated macros for aggregating per-second rates - fix #386
- added
Add metadataoption which added SQL comment to allow detection which dashboard and user is source of query on ClickHouse server side, fix #435
- fixed support grafana cloud fix #517, fix #516
- multiple UI fixes for QueryEditor component, fix #551, #546, #555, #547, #540, #542,
- fixed tlsSkipVerify was ignored when empty tlsCARoot or tlsClientCert and tlsClientKey, fix #532
- fixed multiple issues for format
As table, fix #515, #529 - fixed Annotations setup page don't contain Query textfield, fix #518
- refactored processing macros and whole query on client side, fix #524
- fixed legacy alerting when use $from and $to macros in query, fix #458
- fixed corner case for WHERE field IN ('value1','value2') vs WHERE field IN ['value1','value2'], fix #506
- fixed corner case for $conditionalTest macro, fix #524
- rewrite plugin from scratch for Grafana 10+ compatibility using react instead of angular
- if you provision datasource from YAML, now
xHeaderKeymove fromjsonDatatosecureJsonData, and you need to adddataSourceUrltojsonData, look #348 anddocker/grafana/provisioning/datasources/clickhouse-x-auth.yamlfor details
- switch to go 1.21
- fix
$conditionalTestmacro behavior when drop-down template variable doesn't haveAll value, haveMulti valueand zero values is selected, fix #485 - fix some function descriptions in ACE query editor
- add secureJsonData description for datasource in README, fix #452
- add $delta, $deltaColumns, $increase, $increaseColumns, fix #455
- add CGO_ENABLED=0 when build plugin, fix #447
- add Node graph example, fix #352
- properly escaping database and table identifiers on client-side, fix #440, add more tests
- Switch to go1.19, update go package dependencies
- properly escaping database and table identifiers, fix #440
- Add support for Logs visualization, fix #331, thanks @Fiery-Fenix and @pixelsquared
- Add $conditionalTest to editor auto-complete
- Add support $__searchFilter to template variable queries, fix #354
- Add allow sub-seconds time resolution with $timeSeriesMs and $timeFilterMs support, fix #344, fix #398
- Expand template variable values when open context menu
Explore, fix #346
- remove legacy binaries in dist folder, fix #419
- allow Nullable types in alert label name in backend part, fix #405
- remove INFORMATION_SCHEMA from adhoc control, fix #426
- legacy binaries in dist folder after 2.4.4 release plugin name changed, fix #419
- resolve corner case for
SELECT x IN (SELECT ...), fix #421 - tested textbox variables with
${variable:sqlstring}format, fix #125
- replace Vertamedia Altinity logo
- change ClickHouse logo to Altinity logo
- fix unified alerts interval #400
- update dependencies, try to fix critical nodejs dependencies issues
- fix unnecessary warning Logging message on backend part
- fix #366
- fix #357
- fix #345
- fix #342
- fix #385
- fix #317
- fix #336
- fix #320
- fix #326
- Add support for Grafana 8.x unified alerts, fix #380
- Add TLS support for backend alerts part of plugin #356 (comment)
- Add $naturalTimeSeries macro, look details in https://github.com/Altinity/clickhouse-grafana/pull/89/files#diff-cd9133eda7b58ef9c9264190db4534a1be53216edbda9ac57256fbd800368c03R383-R412
- Update golang-plugin-sdk-go to latest version
- Properly format Value in Table format, look details #379
- Remove toDateTime64 casting for column when time column is already DateTime64 to improve performance. Change test to ensure the casting is removed from the query, fix #360
- implements
$timeFilter64ByColumn(column_name)macro, fix #343
- implements properly GET and POST support for alert queries, fix #353
- SQL syntax highlight now works always, fix #174, fix #381
- fix #376,
- fix negative behavior for $perSecondColumns #337
- fix #374, ignore
--inside quotas as comment
- On latest Grafana 7.x releases, template variables SQL queries shall return only scalar types of values, see #328
- add support Apple M1 ;)
- switch to new grafana plugin Golang SDK, thanks to @bmanth60 and @valeriakononenko for help
- add BasicAuth support for alerts, see #267
- fix github actions backend build
- fix UNION ALL parsing, see #319
- fix many issues with alerting
- automate plugin sign process via github actions, fix wrong executable file permissions
- add region support to annotation query, try to fix wrong column orders for table format, fix #303
- add plugin sign process, fix #212
- add
DateTime64support, fix #292 - add
linux\arm64backend plugin build - improve ARRAY JOIN parsing, fix #284
- improve
docker-compose.yamladd ability to redefineGRAFANA_VERSIONandCLICKHOUSE_VERSIONvia environment variableslatestby default
- add
*.js.mapand*.jsfrom src and spec folder to .gitignore - don't apply adhoc filters twice when used $adhoc macros, fix #282
- fix corner case for table format with wrong columns order between meta and data response section, fix #281
- add trickster to docker-compose environment
- actualize links in README.md
- add "Skip comments" checkbox to query editor to pass SQL comments to server, fix #265
- add setup notes for Grafana 7.x to README
- add SQL preprocessing logic on browser side with <% js code subset %>, #186, thanks @fgbogdan
- improve alerts query processing for use case when
query(query_name, from, to)time range is less than visible dashboard time range, see #237 - improve alerts json parsing in golang part for case when we have string fields in response which interprets as series name, see #230
- properly parsing POST queries in golang part of plugin, #228, thanks @it1804
- fix corner cases for $macro + subquery, see #276 and #277
- fix parallel query execution, see #273
- fix identifiers quotes, see #276, #277
- fix plugin.json for pass
grafana-plugin-repositoryplugin validator - fix multi-value variables behavior - #252
- add Vagrantfile for stateful environment and allow to upgrade scenario like grafana 7.1.0 + grafana-cli upgrade-all
- add multiple dashboard examples for github issues:
- add alerts support for Windows and MacOSX
- improve ad-hoc filters for query field values as
SELECT DISTINCT field AS value FROM db.table LIMIT 300, #222 - add ability to multiple JOIN parsing #206
- multiple improvements for docker-compose environments, add automatic dashboards and datasource provisions which help to reproduce most of the corner cases which happens in Grafana + ClickHouse
- apply a workaround for UTC timezone for Date and DateTime columns in grafana dashboards #117
- clear documentation about timestamp term for $from and $to #115
- fix AST parsing corner case in
WHERE [test, 'test']"," was skipped, fix ah-doc ast FROM recursive parsing #99 - fix corner cases for table functions parsing when adhoc filter applied #130
- fix multiple grammar issues in README.md
- fix convert rules for Float, Decimal columns from Clickhouse to Grafana Table plugin #199
- fix corner cases when Grafana Template variable value represented as array of strings #169
- fix AST parsing corner cases for $macroFunctions correct position for FROM statement #187
- fix golang alerts for $columns, $perSecond, $perSecondColumns macros #200
- compatibility with grafana 7.x, please use environment variable
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=vertamedia-clickhouse-datasourceorallow_loading_unsigned_plugins=vertamedia-clickhouse-datasourcein plugins section ofgrafana.ini#192 - add grafana 7.x alerting support thanks to Brian Thai https://github.com/bmanth60
- add alias support to $perSecondColumns macro #193
- Support
customvariable type and empty values for$conditionalTestmacro #178 - add docker-compose.yaml to improve local development
- fix AST for corner case when quotes escaped inside quotes #123, #195
- fix #179, add "Extrapolation" checkbox to Query Editor
- Comments not supported by sql language parser #95
- Ad Hoc Filters small adjustments for numeric values
- UI optimizations within Metric builder
- Ad Hoc Filters improvements for complex usage
- Compatibility fix to support grafana 6.4.x
- Ad Hoc Filters fix
- $conditionalTest ALL value option fix
- Add macro
conditionalTest(thx to @TH-HA) #122 - Add support for connect to Yandex.Cloud ClickHouse (thx to @negasus) #106
- Fix identifier back quoting when there is a function call
- Fix AST parser errors for quotes (thx to @Fiery-Fenix) #128
- Added default database to all requests from datasource options (thx to @Fiery-Fenix) #126
- Drop lodash fcn composition (thx to @simPod) #110
- Cleanup build (thx to @simPod) #112
- Add
timeFilterByColumnmacro (thx to @simPod) #68
- add requestId to queries so that abandoned one are cancelled (thx to @nvartolomei)
- bug with parentheses in
$unescapemacros #90 - bug with treating string as numbers in table view #97
- new $perSecond and $perSecondColumns macros (thx to @simPod) #78 #80
- Date column is now optional #48
- extend queried timerange for queries with round option to provide a graph without gaps in the rightmost and leftmost points #84
- adhocs: check whether it is possibly to apply filters by comparing with parsed query or query builder settings #86
- provide $adhoc macros for using ad-hoc filters in inner queries (thx to @vavrusa)
- allow to set custom query for ad-hoc filter via
adhoc_query_filtervariable - provide new
Roundvalue$stepfor auto-rounding according to graph resolution changes
- annotations support (txh to @atsirin)
- allow to use
$fromand$tomacros in variable queries - provisioning config example in README
- optimize memory use for range time series (thx to @vavrusa)
- apply ad-hoc filters on inner subqueries (thx to @vavrusa)
- new datasource setting -
default database. If set it will be prefilled in the query builder, and used to make ad-hoc filters more convenient (thx to @vavrusa) - support wildcard ad-hoc filters for dashboards using multiple tables (thx to @vavrusa)
- parse dimensions from GROUP BY to simplify querying (see piechart and worldmap examples) (thx to @vavrusa)
$timeColto$dateColrenamed to be more clear with column types (thx to @simPod)
- fix broken AST when using nested
SELECTwithoutFROMstatement (#45) - strict statement matching (#44)
- rebuild queries from AST only if adhoc filters were applied
- support
UNION ALLstatements - proper format for
LIMIT N,Mconstruction (thx to @shankerwangmiao) - update
Show Helpsection with $unescape description
- $unescape - unescapes variable value by removing single quotes. Used for multiple-value string variables: "SELECT $unescape($column) FROM requests WHERE $unescape($column) = 5"
- lambda-operator
->no more breaks while reformatting query
Ad-hoc filters support:
- If there is an Ad-hoc variable, plugin will fetch all columns of all tables of all databases (except system database) as tags.
So in dropdown menu will be options like
database.table.column - If there are ENUM columns, plugin will fetch their options and use them as tag values
- Plugin will apply Ad-hoc filters to all queries on the dashboard if their settings
$databaseand$tableare the same as Ad-hoc'sdatabase.table - There are no option to apply OR operator for multiple Ad-hoc filters - see grafana/grafana#10918
- There are no option to use IN operator for Ad-hoc filters due to Grafana limitations
- support array indexing int AST
- columns autocompletion in ace-editor
- properly format query with reserved names
- fix #31
- allow rounding with
roundoption both time filters: $from and $to
- apply proper value formatting for table format
- commit generated files
- fix error with absent
getCollapsedText#24 - suppress errors while parsing AST #24
- show generated SQL in textarea #24
- do not round timestamp after converting #25
- increase max-height of query editor
- Ace editor
- ClickHouse function completion (thx to https://github.com/smi2/tabix.ui)