Skip to content

Use "X-Prometheus-Scrape-Timeout-Seconds" request header for timeouts #72

@Fra-nk

Description

@Fra-nk

Prometheus already tells us, which time it allots for the query by supplying the header X-Prometheus-Scrape-Timeout-Seconds (which defaults to the global scrape timeout and can be overridden on a per-job basis).
Prometheus' default configuration sets 10 seconds.

Aligning --timeout with the X-Prometheus-Scrape-Timeout-Seconds would simplify the general setup.

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