Skip to content

Allow single-point Prometheus query_range requests #720

Description

@milindsrivastava1997

Bug

The Prometheus HTTP adapter rejects /api/v1/query_range when start == end with start must be before end. A range query over one evaluation timestamp should be accepted and return a one-sample matrix.

Reproduction

GET /api/v1/query_range?query=sum(metric)&start=1700000000&end=1700000000&step=60

Expected

HTTP success with a matrix evaluated once at 1700000000.

Actual

HTTP bad-data error: start must be before end.

Scope

This is an HTTP request-validation fix, independent of planning-snapshot window derivation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions