PromQL snippets

Lorem ipsumMagna fermentum iaculis eu non diam. Vitae purus faucibus ornare suspendisse sed nisi lacus sed. In nibh mauris cursus mattis molestie a iaculis at. Enim sit amet venenatis urna. Eget sit amet tellus cras adipiscing.Lorem ipsumMagna fermentum iaculis eu non diam. Vitae purus faucibus ornare suspendisse sed nisi lacus sed. In nibh mauris cursus mattis molestie a iaculis at. Enim sit amet venenatis urna. Eget sit amet tellus cras adipiscing.


PromQL snippets

PromQL is a query language for Prometheus monitoring system.

Note! increase() watch out after a reset.

number of requests in the last 5 minutes

sum(increase(http_requests_total{status="200"}[5m]))
sum(increase(http_requests_total{status="200"}[5m]))

number of requests to traefik service in the last 5 minutes

sum(increase(traefik_service_requests_total{service="<xxx>"}[5m]))
sum(increase(traefik_service_requests_total{service="<xxx>"}[5m]))

number of requests to traefik entrypoint in the last 5 minutes

sum(increase(traefik_entrypoint_requests_total{entrypoint="<xxx>"}[5m]))
sum(increase(traefik_entrypoint_requests_total{entrypoint="<xxx>"}[5m]))