Grafana does not send hidden queries to the data source. Duplicating queries is useful when working with multiple complex queries that are similar and you want to either experiment with different variants or do minor alterations. If supported by the data source, click this icon to display information on how to use the query editor or provide quick access to common queries.Ĭopies a query. Grafana organizes queries in collapsible query rows.Įach query row contains a query editor and is identified with a letter (A, B, C, and so on). Grafana queries the data source and visualizes the data. If you’re creating a new dashboard, you’ll be prompted to select a data source when you add the first panel.Ĭlick Query options to configure the maximum number of data points you need.įor more information about query options, refer to Query options. When you create a panel, Grafana automatically selects the default data source.Įdit the panel to which you’re adding a query.Ĭlick the Data source drop-down menu and select a data source. Expressions: Uses the expression builder to create alert expressions.įor more information about expressions, refer to Use expressions to manipulate data.Ī query returns data that Grafana visualizes in dashboard panels.Query editor list: Lists the queries you’ve written.Query inspector button: Opens the query inspector panel, where you can view and optimize your query.Query options: Sets maximum data retrieval parameters and query execution time intervals.Data source selector: Selects the data source to query.įor more information about data sources, refer to Data sources. Grafana also includes three special data sources: Grafana, Mixed, and Dashboard.įor details, refer to Data sources Navigate the Query tabĪ panel’s Query tab consists of the following elements: PromQL example: query_result(max_over_time() != ) PostgreSQL example: SELECT hostname FROM host WHERE region IN($region)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |