Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Alias doesn't accept expressions #24

Closed
sblatnick opened this issue Jul 13, 2016 · 2 comments
Closed

Alias doesn't accept expressions #24

sblatnick opened this issue Jul 13, 2016 · 2 comments

Comments

@sblatnick
Copy link

Other datascources like OpenTSDB support expressions in the Alias field of the metric:
[[customer_Name]] or $customerName

I've noticed that tooltips and legends on graphs and table cell information get really wide because it includes the metric over and over.

For instance, let's say I group the metric by customer name and show a legend or tooltip with "all series". Then I see something like:

metric.name.here.that.is.really.long (customerInfo=Apple)
metric.name.here.that.is.really.long (customerInfo=Banana)
metric.name.here.that.is.really.long (customerInfo=Pear)
...

I could shorten the metric name, but that would still show something like:

Metric (customerInfo=Apple)
Metric (customerInfo=Banana)
Metric (customerInfo=Pear)
...

Instead, I just want to display the customer name without the redundant metric.

Apple
Banana
Pear
...

Using the same syntax as OpenTSDB, I would think this expression would work: $tag_customerInfo or [[tag_customerInfo]], but it seems the Kairos plugin doesn't support expressions.

Using Grafana 3.0.4 with KairosDB Plugin 1.0.1

@ragonlan
Copy link

I really miss this behavior. OpenTSDB has it and is very useful.

@jifwin
Copy link
Contributor

jifwin commented Jan 30, 2017

Custom alias now supports templated variables. Closing.

@jifwin jifwin closed this as completed Jan 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants