Skip to content

Commit d386de1

Browse files
Add dashboard variable to control AdHoc filter syntax (#1464)
1 parent 0fc5c3d commit d386de1

File tree

6 files changed

+144
-24
lines changed

6 files changed

+144
-24
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ Ad Hoc filters. It should be a `constant` type named `clickhouse_adhoc_query`
255255
and can contain: a comma delimited list of databases, just one database, or a
256256
database.table combination to show only columns for a single table.
257257

258+
Ad Hoc filters also work with the Map and JSON types for OTel data.
259+
Map is the default, and will automatically convert the merged labels output into a usable filter.
260+
To have the filter logic use JSON syntax, add a dashboard variable with a `constant` type called `clickhouse_adhoc_use_json` (the variable's `value` is ignored, it just has to be present).
261+
258262
For more information on Ad Hoc filters, check the [Grafana
259263
docs](https://grafana.com/docs/grafana/latest/variables/variable-types/add-ad-hoc-filters/)
260264

package-lock.json

Lines changed: 52 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)