Skip to content

Add gzip compression before http service response #16321

@xuesongxs

Description

@xuesongxs

Is your feature request related to a problem? Please describe.
With the continuous expansion of the tenant / namespace /topic/ application of pulsar cluster, the index text output by the broker is getting larger and larger. If promethues requests the /metrics URL time of the broker to be fixed, such as 10s, with the index getting larger and larger, this 10s will definitely timeout, so the following error will be reported:
3ae6e378bc103bb1afcea9db85ddec2

This will sometimes lead to incomplete indicators of promethues, and sometimes there are problems in the display on grafana, so we add gzip handler to the HTTP response of /metrics to reduce the network transmission volume.

Describe the solution you'd like
Add gzip handler to the HTTP response of /metrics

Metadata

Metadata

Assignees

No one assigned

    Labels

    Staletype/featureThe PR added a new feature or issue requested a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions