The Wavefront Query Builder is an easy-to-use interface that makes Wavefront accessible to all users in your organization. You can construct queries using query builder or query editor. Both query quilder and query editor support autocomplete.
- Query builder allows you to construct queries from building blocks. Query Builder supports most elements of the Wavefront Query Language. A few of the more advanced functions are only available in the Query Editor, so you can switch from Query Builder to Query Editor to use those functions. You cannot switch from Query Editor to Query Builder.
- Query Editor expect that you type the query using the elements of the query language.
See Wavefront Query Language Quick Reference for a complete reference - each function links to a reference page.
Toggling Query Builder User Preferences
Query builder is enabled by default. You can toggle query builder settings in your user preferences.
- If Enable Query Builder and Always Open the Query Builder are both checked, then query builder always displays when you navigate to a blank chart or new alert.
- If Always Open the Query Builder is not checked, then the query editor displays by default. Query builder displays only if you click the query builder toggle.
To switch from query builder to query editor, click the toggle.
Warning: If you switch to query editor and make changes to the query there, you can’t return to query builder.
You use query builder to construct a query from its building blocks:
- A metric, constant, or other query.
- Zero or more filters (i.e. sources, source tags, and point tags). The metric determines which filters make sense.
- Zero or more functions for manipulating the output.
As you construct a query, it displays below the query builder. The chart associated with the query updates as you add filters and use functions to manipulate the output.
You can preview the result of each step in real time before you make the change:
- For filters, click the bar chart icon at the end of each field (shown below).
- For functions, hover over the function to get documentation and a preview of the changed chart.
Filters and Functions
Query Builder helps you construct your queries like this:
- You can
ORmultiple elements together. Unlike manually constructed
ts()queries, which allow mixed
ORs, the Query Builder applies either
- The order of evaluation is left to right – metrics, then filters, then functions.
- Wildcard matching is supported for metrics, sources, and tags.
- To remove any query element, click the X icon to the right of that element. The rest of your query remains intact.