3

The Prometheus Data Model and PromQL

With Prometheus deployed, let’s explore a little more about what it’s doing under the hood. You’re likely already somewhat familiar with Prometheus, but you may not know the intricacies of how it works. It’s something I’m still learning every day and I dare say that Prometheus’s code base has grown to the size where there may not be a single person or maintainer who understands the ins and outs of how every piece of it works. Nevertheless, there’s still plenty to be learned; the more you understand a system, the better you can run and maintain it.

The core of the Prometheus system is its TSDB. Most of the work that Prometheus does is centered around either getting data into the TSDB or reading data out ...

Get Mastering Prometheus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.