Skip to content

Resolve "Automatically set Prometheus step interval"

What does this MR do?

By computing the step interval passed to the query_range Prometheus API call we

  1. improve the performance on the Prometheus server and GitLab by reducing the amount of data points sent back

  2. prevent Prometheus from sending errors when requesting longer intervals

See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/26228#note_152622843

exceeded maximum resolution of 11,000 points per timeseries. Try decreasing the query resolution (?step=XX)

We target 600 data points for now but a step of at least 60s.

What are the relevant issue numbers?

#58839 (closed) #31368 (closed)

Does this MR meet the acceptance criteria?

Closes #58839 (closed)

Edited by Peter Leitzen

Merge request reports