Quantcast
Channel: InfluxDB - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 199

Distinguishing display name for query with multiple fields

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

AWS-managed Grafana v10.4.1

  • What are you trying to achieve?

I’m following this: Forecasted alerts with Grafana and InfluxDB. I’d like actual and forecast values properly labelled in the timeseries visualization.

  • How are you trying to achieve it?

I have the same query: SELECT ... AS actual, ... AS forecast .... In Grafana’s Explore tab, the alias of $col worked as expected.

I’m setting the alias to $col and the display name to ${__field.labels.host}: ${__field.labels.path} (${__field.name}).

  • What happened?

The legend shows names like my-host-1: /tmp (Value) (twice, once for actual and once for forecast).

  • What did you expect to (hoped would) happen?

I hoped to see names like my-host-1: /tmp (actual) and my-host-1: /tmp (forecast).

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

I think I did above. If you’d like more detail, please let me know.

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

No.

  • Did you follow any online instructions? If so, what is the URL?
  1. General query: Forecasted alerts with Grafana and InfluxDB
  2. Alias patterns: InfluxDB query Editor | Grafana documentation
  3. Display name: Configure standard options | Grafana documentation

Many thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 199

Trending Articles