-
Notifications
You must be signed in to change notification settings - Fork 76
Added shard operations collector and optimized node stats collector #824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: nishchay21 <nishcha@amazon.com>
Signed-off-by: nishchay21 <nishcha@amazon.com>
Signed-off-by: nishchay21 <nishcha@amazon.com>
| for (Map.Entry<ShardId, ShardStats> currentShard : currentPerShardStats.entrySet()) { | ||
| ShardId shardId = currentShard.getKey(); | ||
| ShardStats currentShardStats = currentShard.getValue(); | ||
| if (prevPerShardStats.isEmpty() || !prevPerShardStats.containsKey(shardId)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we check !null here itself?
| // attributes= {index_name="test", shard_id="0"} | ||
| private Tags createTags(ShardId shardId) { | ||
| return Tags.create() | ||
| .addTag(RTFMetrics.CommonDimension.INDEX_NAME.toString(), shardId.getIndexName()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add index uuid as well?
| * @param indexOps count of index operations. | ||
| * @param searchOps count of search operations | ||
| */ | ||
| public record ShardOperation(long indexOps, long searchOps) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this as public?
Signed-off-by: nishchay21 <nishcha@amazon.com>
Signed-off-by: nishchay21 <nishcha@amazon.com>
Signed-off-by: nishchay21 <nishcha@amazon.com>
Signed-off-by: Nishchay Malhotra <114057571+nishchay21@users.noreply.github.com>
Signed-off-by: nishchay21 <nishcha@amazon.com>
7799cec to
21f3f7c
Compare
Description
Added shard operations collector and optimized node stats collector
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.