Query editor
The Infinity query editor allows you to retrieve data from HTTP endpoints and transform it for visualization in Grafana. This document explains the query editor interface and how to build queries.
Before you begin
- You must have a configured Infinity data source. Refer to Configure the Infinity data source for instructions.
- Familiarize yourself with the data format you want to query (JSON, CSV, XML, GraphQL, or HTML).
Query editor overview
The query editor consists of several key components:
Create a query
To create a basic query:
- In the query editor, select the Type that matches your data format (for example, JSON).
- Select a Parser based on your transformation needs:
- JSONata (default) - JSONata expressions, runs in backend (supports alerting)
- JQ - JQ expressions, runs in backend (supports alerting)
- UQL - Unstructured Query Language, runs in frontend
- Frontend - Simple column mapping, runs in frontend
- Select the Source:
- URL - Fetch data from an HTTP endpoint
- Inline - Enter data directly in the editor
- Azure Blob - Retrieve from Azure Blob Storage
- Reference - Use pre-configured reference data
- Select the output Format based on your visualization needs.
- If using URL source, enter the endpoint URL and configure the HTTP method.
URL configuration
When using URL as the source:
Use variables in URLs
You can use Grafana variables and time macros in URLs:
https://api.example.com/data?from=${__timeFrom}&to=${__timeTo}For more information about URL configuration, refer to URL configuration.
Parsing options
The Parsing options & Result fields section configures how data is extracted:
Configure columns
Click Add Columns to define the fields to extract:
Computed columns, filters, and grouping
The Computed columns, Filter, Group by section provides additional data transformation options when using backend parsers (JSONata or JQ):
For detailed information about expressions and operators, refer to JSONata backend parser.
Parser options
Choose a parser based on your needs:
For detailed parser documentation:
Output formats
Select the appropriate format for your visualization:
For specialized formats, refer to:
Use queries for alerting
To use Infinity queries with Grafana Alerting, you must use a backend parser (JSONata or JQ). Frontend parsers (Default, UQL, GROQ) do not support alerting.
Backend parsers also enable:
Use the parsing assistant
Click Use Assistant to parse data to open the AI-powered parsing assistant. The assistant can help you:
- Automatically detect data structure
- Suggest column configurations
- Generate parser expressions
Note
The parsing assistant requires Grafana’s AI features to be enabled.
Next steps
- Learn about data formats supported by Infinity
- Explore macros for dynamic queries
- Set up template variables for interactive dashboards



