What is Prometheus and how does it monitor servers and applications?

Published on 2026-10-21 by frfrand

What is Prometheus and how it monitors: scraping of /metrics, exporters, time series with labels, PromQL, alerts with Alertmanager and cardinality errors.

What is Prometheus and how does it monitor servers and applications?

Short answer: Prometheus is an open-source monitoring system that queries your servers' and applications' metric endpoints at regular intervals (almost always /metrics), stores those values as labeled time series, lets you query them with PromQL, and trigger alerts, which are typically handled by Alertmanager.

Prometheus is a monitoring system that collects and stores metrics from servers and applications as time series. It is used to answer specific questions: how much memory does a process consume?, how many requests does an API receive?, when did the error rate start increasing?

Its main purpose is not to store full logs or replace a business database. It is designed to observe values that evolve over time.

The car dashboard example

While driving, you don't need to open the engine every thirty seconds to know your speed. An instrument measures and displays that value.

Something similar happens on a server: an application can expose data such as the number of HTTP requests, their duration, or memory usage. Prometheus collects those measurements and helps you observe how they change.

The important thing is that a metric does not automatically explain the cause. If the processor reaches 95%, you still need to investigate which process is working and why.

How does Prometheus obtain the data?

In a typical configuration it uses the pull model: it periodically queries metrics endpoints of the configured targets. That operation is called scrape.

Many applications expose an endpoint such as /metrics. If they do not, components called exporters can be used, capable of obtaining measurements from a system and presenting them in a compatible format.

For example, a system exporter can expose server information. Another can collect certain statistics from a database. This does not mean that installing the exporter automatically activates an alert: first you have to decide what to observe.

What is a time series?

Imagine recording every fifteen seconds how much free space is left on a disk. You will obtain a sequence of values associated with specific moments. That is the idea of a time series.

Prometheus represents metrics using names and labels, known as labels. A label can identify the service, instance, or HTTP method. This makes it possible to compare different components.

But here there is a common mistake: creating a label with the unique identifier of each user or request can produce millions of combinations. It is called high cardinality and can consume too much memory and storage.

What does an API measure?

An API could record how many requests it handles and how long they take. From those metrics you can observe error trends and response times.

It is also useful to distinguish the overall state of the server from the actual operation of the application. Having available CPU does not guarantee that a reservations endpoint will respond correctly.

That is why it is worth measuring what the user experiences: successful requests, errors, and representative latencies.

Does Prometheus send alerts?

Prometheus allows you to define rules to detect conditions, and it usually integrates with Alertmanager to manage notifications, groupings, and alert routing.

A rule such as "disk usage above a threshold for a period" can be useful. A rule that warns about every second-by-second fluctuation will likely end up generating noise.

Alerts should describe situations that someone can investigate and correct.

What is PromQL?

It is the query language used by Prometheus to select and operate on its time series. It allows you to calculate rates and aggregates from metrics.

You do not need to master it on the first day. Before building complex queries, make sure you are collecting correct data and that each metric represents what you think it does.

Are Prometheus and Grafana the same?

No. Prometheus collects, stores, and queries metrics. Grafana can query those metrics and display them through panels. They complement each other, but they have different responsibilities.

They are also not an automatic replacement for distributed traces or logs. To investigate a specific request, you may need to correlate the three signals.

Where does ArduMaker appear?

ArduMaker does not come with Prometheus installed nor does it offer it in its Apps catalog (as of November 2026). What the panel of each VPS shows, and also the MCP tool ver_estado_vps, is the system status read from the machine itself: CPU, memory, disk, uptime, running services, and per-process consumption. It is useful to know if the server is underutilized, but it does not measure what happens inside your application: requests, errors, or latencies.

For that you have to instrument the application and run Prometheus yourself, for example as a systemd service or in a container (Docker can be installed from Apps). Keep Prometheus and the /metrics endpoints off the Internet: inside the VPS 127.0.0.1 is enough. If you need to view them from outside, limit port forwarding by IP or put them behind authentication.

Frequently asked questions

Is Prometheus used to store logs? No. It stores numeric values over time. To read the details of a specific request you need logs, and sometimes traces.

How often does it query targets? This is defined by scrape_interval in its configuration. The default global value is one minute, and many installations lower it to 15 or 30 seconds. The shorter it is, the more data and more storage.

Do I need Grafana to use it? It is not mandatory: Prometheus comes with a web interface to run PromQL queries and view simple charts. Grafana is added when you want built and shared dashboards.

What is high cardinality? It is having too many label combinations, for example a label with the ID of each user. Each combination is a new series, and memory grows uncontrollably.

In summary: Prometheus allows measuring how a system evolves. What matters is not collecting thousands of numbers, but choosing useful signals to detect problems before they affect users.

Official sources: Introduction to Prometheus · Data model · Alerts.

What is Prometheus and how does it monitor servers and applications?
  • Prometheus
  • métricas
  • monitorización

Keep reading

All articles · VPS plans