I’m just trying to figure out how to use the Metric Bucket script for Elasticsearch (Grafana 6.0.2, Elasticsearch 5.2.2).
I followed the link of the “Whats new” documentation and read the Elasticsearch documentation.
Special I can’t get any further with the field ‘select metric’.
Everything I enter is discarded immediately and does not end up in the query “buckets_path”.
Gene Tag Annotation
----- ----- ---------------
A1BG tag1 first gene
A2M tag1 a-macroglobulin
A2M tag2 second gene
BRCA1 tag1 breast cancer 1
BRCA1 tag3 important gene
I want to query these data, aggregate and sort by gene, and get something like this:
Gene Tags Annotations
------ ----------- -------------------------------
A1BG tag1 first gene
A2M tag1; tag2 a-macroglobulin; second gene
BRCA1 tag1; tag3 breast cancer 1; important gene
I do not know is this is possible. If it is, I do not know how.
I such a case I always fill the data already comma separated into the Elasticsearch Index.