Skip to content
This repository has been 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

Open
2 tasks
Tracked by #16
cmacknz opened this issue Mar 1, 2023 · 2 comments
Open
2 tasks
Tracked by #16

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

cmacknz opened this issue Mar 1, 2023 · 2 comments
Labels
Team:Elastic-Agent Label for the Agent team

Comments

@cmacknz
Copy link
Member

cmacknz commented Mar 1, 2023

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.
@cmacknz cmacknz added the Team:Elastic-Agent Label for the Agent team label Mar 1, 2023
@pierrehilbert
Copy link
Contributor

@cmacknz / @leehinman could we close this one with the new shipper plan? Because it's already available in beats.

@cmacknz
Copy link
Member Author

cmacknz commented May 4, 2023

Let's leave this open and then confirm Beats works the way we want it to here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

2 participants