Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Add a counter for the number of bytes transmitted by the shipper #271

@cmacknz

Description

@cmacknz

Each time the Elasticsearch output successfully writes a batch to Elasticsearch, we should increment a counter with the number of bytes that were indexed. This counter can be used to derive the shipper transmission rate in bytes/second.

Acceptance Criteria:

  • A transmitted bytes metric counter is available on the shipper's metrics HTTP interface under the /debug/vars path.
  • A test exists proving that the counter increments when a batch is successfully written and does not increment when the batch fails and needs to be retried.

Metadata

Metadata

Assignees

No one assigned

    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