Skip to content

Introduce a metric for accepted bytes in distributor #21501

@emadolsky

Description

@emadolsky

Is your feature request related to a problem? Please describe.
Loki distributor exports metrics of uncompressed ingested bytes (distributor_bytes_received_total) and the discarded bytes (discarded_bytes_total) which is the sum of total entry size of the discarded logs.
The problem is that the size reported in the two metrics mentioned above are not referring to the same type of data structure, so it is even possible to have more bytes reported as discarded than the bytes reported ingested which could be misleading.

Describe the solution you'd like
We could have metrics of the sizes of similar types for ingestion and accepted. Distributor could export a metric on the total bytes accepted as well as discarded.

Describe alternatives you've considered
Loki also can export the size of incoming records size that has been discarded. However, that will be less useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions