Skip to content

Conversation

@nishchay21
Copy link
Collaborator

@nishchay21 nishchay21 commented Jun 29, 2025

Description

Added shard operations collector and optimized node stats collector

Check List

  • [✅] New functionality includes testing.
  • [✅] New functionality has been documented.
  • [✅] API changes companion pull request created.
  • [✅] Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

Signed-off-by: nishchay21 <nishcha@amazon.com>
Signed-off-by: nishchay21 <nishcha@amazon.com>
@nishchay21 nishchay21 marked this pull request as ready for review June 29, 2025 07:59
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)) {
Copy link
Collaborator

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())
Copy link
Collaborator

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) {}
Copy link
Collaborator

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>
Gaganjuneja
Gaganjuneja previously approved these changes Jul 2, 2025
Signed-off-by: nishchay21 <nishcha@amazon.com>
nishchay21 and others added 5 commits July 3, 2025 13:38
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants