Skip to content

V2: Query API incompatibility around missing time windows #4016

Open
@simonswine

Description

@simonswine

Describe the bug

A clear and concise description of what the bug is.

When using the v2 mode, the API behaves directly, it seems to treat the time window as required:

$ curl -H "content-type: application/json"  -d '{"label_names":["__profile_type__"]}' "http://v1/querier.v1.QuerierService/Series"
{"labelsSet":[{"labels":[...]}]}

$ curl -H "content-type: application/json"  -d '{"label_names":["__profile_type__"]}' "http://v2/querier.v1.QuerierService/Series"
{"code":"invalid_argument","message":"missing time range in the query"}%

Expected behavior

Follow the same API behaviour, with and without v2

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