From the course: Prometheus and Grafana: Visualizing Application Performance
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Grafana queries
From the course: Prometheus and Grafana: Visualizing Application Performance
Grafana queries
- [Instructor] Another fundamental building block in Grafana is queries. A query is a question you pose to a data source using a specific language. In this course, we will focus on the Prometheus query language, commonly known as PromQL. To make writing queries straightforward, Grafana has also introduced a query builder for Prometheus. A query has several key components. These include a data source, a query language, a metric, a time range, and filters. In the subsequent examples, we'll start from simple queries and progress to more complex ones. This will help you to appreciate how the query editor makes your life easier. Now let's take a look at the query tab. The query tab in the panel has the following, a data source selector, which selects the data source to query, the query options, which sets the parameters for retrieval, the query inspector button, which opens the inspector panel. You can use this to review and optimize your query. The query editor list, which list the…