Skip to content

metrics: ReadTimeout and WriteTimeout are hardcoded and cannot be configured #1733

Description

@radeshgovind-2005

The metrics server's ReadTimeout and WriteTimeout are hardcoded to 10s in ServeMetrics(). There is an existing TODO in the code requesting this be parameterized:

// TODO: parameterize ReadTimeout and WriteTimeout. The maximum time we can
// profile CPU usage depends on WriteTimeout

Operators who want longer CPU profiles have no way to extend WriteTimeout.

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