Skip to content
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

Update ccr stats endpoint #546

Merged
merged 3 commits into from
Aug 7, 2018

Conversation

dliappis
Copy link
Contributor

@dliappis dliappis commented Aug 7, 2018

Update the endpoint and the unit tests to reflect the changes brought
in [1]

Also simplify filtering ccr-stats related documents by adding
meta.name=ccr-stats to the metric documents, similarly to the work
done for node-stats in [2].

[1] elastic/elasticsearch#32350
[2] 9b8974f

Update the endpoint and the unit tests to reflect the changes brought
in [1]

[1] elastic/elasticsearch#32350
@dliappis dliappis added the :Telemetry Telemetry Devices that gather additional metrics label Aug 7, 2018
@dliappis dliappis added this to the 1.0.1 milestone Aug 7, 2018
Copy link
Member

@danielmitterdorfer danielmitterdorfer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I left one comment but please feel free to pick whatever implementation you prefer.

}
for shard_stats in stats:
shard_id = shard_stats.get("shard_id", None)
if shard_id is not None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a matter of taste but you could also write this as if "shard_id" in shard_stats and then use shard_stats["shard_id"] in the body.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion I prefer this as well; addressed in 581a69f

@danielmitterdorfer danielmitterdorfer added the enhancement Improves the status quo label Aug 7, 2018
@dliappis dliappis merged commit 998d862 into elastic:master Aug 7, 2018
@dliappis dliappis deleted the update-ccr-stats-endpoint branch August 7, 2018 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Telemetry Telemetry Devices that gather additional metrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants