Skip to content

Prometheus metric on publisher message compression ratio #1359

@jcass8695

Description

@jcass8695

Is your feature request related to a problem? Please describe.
In our organisation we sink Pulsar messages for some topics directly to S3. It is useful for us to know the compression ratio that we are achieving on our payload size so that we are maximising efficiency of data storage, as we are able to grow/shrink the payload size to optimise for this.

Describe the solution you'd like
A prometheus histogram or gauge metric that producers publish on each message compression.

Describe alternatives you've considered
We considered calculating this metric ourselves, however the compression code is in the internal directory in the project. I do not think there are any public methods that would give us this data.

Additional context
N/A

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