Skip to content

PrometheusScrapeHandler should compress the response on the fly if it is required #1488

@jerry-cherry

Description

@jerry-cherry

current process seems like this:

  • create plain response in memory
  • check if response should be compressed
    • compress the memory response

instead, it would be desirable to do

  • check if response should be compressed
  • create zip stream based on the memory stream
  • save the output into the zipped stream

This would save the memory, especially when there are huge output

Thanks,
jerry

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