Skip to content

"api/series" uses too much memory #5547

@vitkovskii

Description

@vitkovskii

Bug Report

What did you do?
Send series query like: /api/v1/series?match[]={le!=""}

What did you expect to see?
Well, this is a very heavy query, so I expect Prometheus to hit timeout or other limits.

What did you see instead? Under which circumstances?
The query is executing for ~30 mins until Prometheus is OOM killed.
Normally Prometheus use ~25Gb of memory. This query forces to use more than 90Gb.

Here is memory usage graph:
image

Disk read:
image

Environment
We deploy Prometheus to Kubernetes using Prometheus Operator

@brian-brazil

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions