1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [PromQL](<https://delaparra-services.nl/knowledge-hub/promql>)

  

Category: Observability 

# PromQL

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is PromQL?

 

PromQL: Prometheus Query Language — selects and aggregates time series for dashboards and alerts. PromQL is the query language of Prometheus. It selects time series by name and labels, and combines them with functions and operators to answer questions like "what share of requests failed in the last five minutes?" ` sum(rate(http_requests_total{status=~"5.."}[5m])) by (route) ` gives the rate of server errors per route. ` rate() ` turns ever-growing counters into per-second values, and ` sum by ` adds them up per label.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about PromQL

  

### What should you keep in mind with PromQL?

 

A few functions cover most needs: ` rate ` for counters, ` histogram_quantile ` for percentiles, and ` sum `, ` avg ` and ` max ` with ` by ` for grouping. Write alert rules as ratios, such as errors divided by requests, so they work at any traffic level. Grafana's query editor helps you explore available metrics and labels while you learn.

    

### What does an example of PromQL look like?

 

```
sum(rate(http_requests_total{status=~"5.."}[5m])) by (route)
```

 

## At a glance

   CategoryObservability Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Observability terms

 

- [OpenTelemetry (OTEL)](<https://delaparra-services.nl/knowledge-hub/opentelemetry-otel>) 
- [percentile (p50/p95/p99)](<https://delaparra-services.nl/knowledge-hub/percentile-p50p95p99>) 
- [Prometheus](<https://delaparra-services.nl/knowledge-hub/prometheus>) 
- [RED method](<https://delaparra-services.nl/knowledge-hub/red-method>) 
- [sampling](<https://delaparra-services.nl/knowledge-hub/sampling>) 
- [SLA](<https://delaparra-services.nl/knowledge-hub/sla>)

 

[All terms starting with P](<https://delaparra-services.nl/knowledge-hub#letter-p>)

 

## Skills

 

- ### Sentry PHP SDK

 

Full Sentry SDK setup for PHP. Use when asked to "add Sentry to PHP", "install sentry/sentry", "setup Sentry in PHP", or configure error monitoring, tracing, profiling, logging, metrics, crons, or AI monitoring for PHP applications. Supports plain PHP, Laravel, and Symfony.

 [View skill](<https://delaparra-services.nl/skills/sentry-php-sdk>) [Download zip](<https://delaparra-services.nl/skills/sentry-php-sdk/download>) 
- ### Prometheus Configuration

 

Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.

 [View skill](<https://delaparra-services.nl/skills/prometheus-configuration>) [Download zip](<https://delaparra-services.nl/skills/prometheus-configuration/download>) 
- ### SLO Implementation

 

Define and implement Service Level Indicators (SLIs) and Service Level Objectives (SLOs) with error budgets and alerting. Use when establishing reliability targets, implementing SRE practices, or measuring service performance.

 [View skill](<https://delaparra-services.nl/skills/slo-implementation>) [Download zip](<https://delaparra-services.nl/skills/slo-implementation/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/promql/skills.zip>)

 

## Manuals

 

- [Logging and monitoring for your app](<https://delaparra-services.nl/manuals/logging-en-monitoring>) 
- [Understanding common error messages](<https://delaparra-services.nl/manuals/foutmeldingen-begrijpen>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet. 
- [AI code review](<https://delaparra-services.nl/services#service-05>)

When you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/promql)
