Learn about query language basics and advanced functions

Learn about the Wavefront query language as well as how Wavefront works with Prometheus query language (PromQL).

Intro to Wavefront Query Language
introduction to query language

Wavefront query language allows you to shape the data you see in your dashboards. Jason first shows an example of an environment where a single switch in a customer environment had a problem. The example uses the advanced functions if() at() and corr() to find other switches with the same behavior and prevent further problems. Jason then uses the highpass() function on other data to show only true failures in a chart.

Query Language Basics
wavefront query basics

Jason starts by looking at the Wavefront data format. Then he adds a query to a chart that has only the required metric name. To narrow down the result, he uses a source filter with a wildcard and a point tag filter.

Advanced Query Language Functions
advanced functions

Jason explores query language functions using the following examples:

  • The percentile() function in 3 queries shows different percentiles for a query.
  • The mpercentile() (moving percentile) function displays percentile over a 30 minute window.
  • A chart variable in a query that shows the standard deviation.

Wavefront and Prometheus Query Language

With the 2021-17.x release, we've expanded the limited PromQL support and we've added admin-level organization setting to determine whether a user can write in PromQL. We have also added full support for creating charts and alerts with PromQL queries. Watch this video to learn how to create charts and alerts by using PromQL.