Prometheus offers a powerful and flexible query language in order to leverage its multi-dimensional data model that allows ad hoc aggregation and a combination of time series data. In this chapter, we'll introduce PromQL, its syntax, and semantics. Armed with the knowledge and features of this language, we'll be able to unlock the true potential of Prometheus.
In brief, the following topics will be covered in this chapter:
- The test environment for this chapter
- Getting to know the basics of PromQL
- Common patterns and pitfalls
- Moving on to more complex queries