Query string
Written by
Updated at December 19, 2023
The query language of Yandex Monitoring is used to configure dashboards and alerts. In the query string, you enter an expression written in the query language in tokenized or text mode. The query string allows you to apply functions to a set of metrics uploaded from a specific service. To display metrics from different services on a dashboard's chart, create multiple query strings.
In tokenized mode, the query string consists of two parts:
- Selectors used to upload metrics.
- A set of functions from the query language. Functions are applied to metrics sequentially from left to right.
The query string in tokenized mode looks like this:
In text mode:
- In the query string, you enter functions which, for an argument, get a query to metrics or a result returned by another function.
- Syntax highlighting is enabled with function names and selector label values highlighted in different colors.
To switch to text mode, click
The query string in text mode looks like this: