It was always simple to create Query type dashboard variables:
{“find”: “terms”, “field”: “kubernetes_namespace.labels.deployment-name.keyword”}
Now, in v13 this clumsy query builder was introduced and it is no longer clear what we a re supposed to do with it.
You might thing that if you used query “{“find”: “terms”, “field”: “kubernetes_namespace.labels.deployment-name.keyword”}” in pre-v13 Grafana, then you could try something like this:
But alas, it only works partially because in addition to the legit deployment name values that the variable gets populated, I also get a generous bonus of trash values like “4583823” which apparently comes from document count value. And how can i get rid of this trash if the query builder INSISTS on having some kind of metric?
By the way, as an extra sucky part of grafana v13 - did you notice that when you switch from one Query Type tab to the other, the query that you wrote simply vanishes and if you didnt save it you have no other choice but to rewrite it manually? And not only that, but also if you are unfortunate enough to be compelled to select some other Metric, the same query that you tediously re-wrote vanishes again? I mean, this kind of degradation of a product is only possible when human quality control is not present




