-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metrics: Add MeterProvider, 2 new flush metrics (#46)
Adds 2 new arguments to `Config`; `MeterProvider`, `MetricAttributes`. The `MeterProvider` is used to create and record two new metrics, `elasticsearch.buffer.latency` and `elasticsearch.flushed.latency`. The former measures how long a document is stored in the Bulk Indexer's buffer for, while the latter records the Elasticsearch _bulk request latency. `elasticsearch.buffer.latency` does not take into account the time a document spent in the buffered channel. Doing so is quite costly and reduces the performance more than expected, so it was abandoned. `elasticsearch.flushed.latency` not only measures the strict request round trip, but also the response parsing and atomic metric operations. --------- Signed-off-by: Marc Lopez Rubio <[email protected]>
- Loading branch information
Showing
5 changed files
with
180 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters