[receiver/elasticsearch]: add metrics related to GET operations #14793
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
New metrics have been added. However, I think that they're a bit troublesome to add. They are metrics that reflect how many GET operations ended up with success (
exists
), how many ended up with failure(missing
) and time spent on these operations.Currently (on main) only total sum of these two values is being sent as
elasticsearch.node.operations.*
metrics withget
attribute. This is the main reason why I think that adding them is not easy. I thought up of two solutions that wouldn't be breaking changes:get_exists
andget_missing
- it would not be a breaking change, but I feel that it doesn't look goodelasticsearch.node.operations.get.*
- it is not consistent with how other metrics are organised, but neither breaks anything. Might seem unintuitive, because then total count would beelasticsearch.node.operations.completed
, but total success count would beelasticsearch.node.operations.get.completed
.I implemented the second one, but I'm open for discussion. If we don't mind breaking changes, then we could for example implement the first one and remove the total count, because
exists + missing = total
.Link to tracking Issue: #14635
Testing:
Unit tests and integration tests.
Documentation:
Generated by
mdatagen
.