How to preserve variable names when running Opentsdb commands through a transform

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?
    I am trying to use the Opentsdb plugin with grafana.
    I would like to calculate the rate per second. I have data that returns a sliding total of every 5 minutes.

  • How are you trying to achieve it?
    To find my sliding total, I run a transform and divide by 300. This works fine when am not doing any filtering (See the query slide)

  • What happened?
    However, when I try to filter my data, the transform hardcodes the alias.
    (See the transform side). Also, there is no way to preserve the variable name in the returned column.

  • What did you expect to happen?
    The transform should treat the variable alias as a template, not a hard coded value

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?