Skip to content

Include 'refresh' and 'flush' stats by default when using 'node-stats-include-indices'#1702

Merged
b-deam merged 2 commits intoelastic:masterfrom
b-deam:refresh-flush-metrics
Apr 24, 2023
Merged

Include 'refresh' and 'flush' stats by default when using 'node-stats-include-indices'#1702
b-deam merged 2 commits intoelastic:masterfrom
b-deam:refresh-flush-metrics

Conversation

@b-deam
Copy link
Copy Markdown
Member

@b-deam b-deam commented Apr 12, 2023

Title. These stats are super useful and we should include them by default.

@b-deam b-deam added enhancement Improves the status quo :Telemetry Telemetry Devices that gather additional metrics labels Apr 12, 2023
@b-deam b-deam requested review from dliappis and inqueue April 12, 2023 03:21
@b-deam b-deam self-assigned this Apr 12, 2023
Copy link
Copy Markdown
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

Title. These stats are super useful and we should include them by default.

Any thoughts about the performance impact? We used to have issues in the past, see the warning here and while they don't look like big structures, I am always concerned about what happens under the hood in ES when asking for extra things in node-stats.

@b-deam
Copy link
Copy Markdown
Member Author

b-deam commented Apr 13, 2023

Title. These stats are super useful and we should include them by default.

Any thoughts about the performance impact? We used to have issues in the past, see the warning here and while they don't look like big structures, I am always concerned about what happens under the hood in ES when asking for extra things in node-stats.

We already retrieve the full node stats output (no pre-filtering):

stats = self.client.nodes.stats(metric="_all")

So the only extra overhead is parsing for these objects in the node stats response, and the additional 9 keys in the respective sample's dict.

@dliappis dliappis self-requested a review April 13, 2023 07:20
Copy link
Copy Markdown
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

LGTM

@b-deam b-deam merged commit 0a80fdb into elastic:master Apr 24, 2023
@gbanasiak gbanasiak added this to the 2.8.0 milestone Jun 12, 2023
@gbanasiak gbanasiak changed the title Include 'refresh' and 'flush' stats by default when using 'node-stats-include-indices Include 'refresh' and 'flush' stats by default when using 'node-stats-include-indices' Jun 12, 2023
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.

3 participants