The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/docs/sources/panels/query-a-data-source/use-expressions-to-manipula.../write-an-expression.md

849 B

aliases title weight
[/docs/grafana/latest/panels/query-a-data-source/use-expressions-to-manipulate-data/write-an-expression/ /docs/sources/panels/query-a-data-source/use-expressions-to-manipulate-data/write-an-expression/] Write an expression 20

Write an expression

If your data source supports them, then Grafana displays the Expression button and shows any existing expressions in the query editor list.

For more information about expressions, refer to [About expressions]({{< relref "about-expressions/" >}}).

  1. Open the panel.

  2. Below the query, click Expression.

  3. In the Operation field, select the type of expression you want to write.

    For more information about expression operations, refer to [About expressions]({{< relref "about-expressions/" >}}).

  4. Write the expression.

  5. Click Apply.