-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add num docs and size to logsdb telemetry #116128
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
Conversation
5afaf6d
to
cb90135
Compare
Hi @dnhatn, I've created a changelog YAML for you. |
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
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.
Thanks Nhat. I left two comments.
} | ||
|
||
public static class IndexStats implements Writeable { | ||
private long numDocs; |
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.
make fields final?
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.
Fields need to be non-final for the add
method, which combines stats across shards and nodes.
} | ||
|
||
@Override | ||
protected NodeResponse nodeOperation(NodeRequest request, Task task) { |
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 you think there is an easy way to reuse the logic in IndicesStatsCache#internalGetIndicesStats()
? I think it is the same logic.
I suspect we don't want the caching behaviour that IndicesMetrics
has (because this should be invoked often), otherwise we could think of reusing it.
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.
++ I pushed 650c7b7
@martijnvg This is ready again. Can you please take another look? Thank you! |
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.
LGTM - thanks Nhat!
Thanks Martijn! |
💚 Backport successful
|
Follow-up on elastic#115994 to add telemetry for the total number of documents and size in bytes of logsdb indices. Relates elastic#115994
Follow-up on elastic#115994 to add telemetry for the total number of documents and size in bytes of logsdb indices. Relates elastic#115994
Follow-up on elastic#115994 to add telemetry for the total number of documents and size in bytes of logsdb indices. Relates elastic#115994
Follow-up on #115994 to add telemetry for the total number of documents and size in bytes of logsdb indices.
Relates #115994