Skip to content

Add ability to provide a list as input for disk-usage-stats#1913

Merged
gareth-ellis merged 7 commits intoelastic:masterfrom
gareth-ellis:disk-usage-stats
Mar 4, 2025
Merged

Add ability to provide a list as input for disk-usage-stats#1913
gareth-ellis merged 7 commits intoelastic:masterfrom
gareth-ellis:disk-usage-stats

Conversation

@gareth-ellis
Copy link
Copy Markdown
Member

We currently expect a comma separated list of indices, however its possible to provide a list, which then ends up crashing rally at the end of a race. Since the parameter is in plural, it makes sense to at least support providing a list. This checks that if the parameter is a list, and if so convert to comma separated

@gareth-ellis gareth-ellis requested review from a team and pjbertels February 7, 2025 16:15
Copy link
Copy Markdown
Contributor

@gbanasiak gbanasiak left a comment

Choose a reason for hiding this comment

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

Sorry, haven't seen this earlier.

There's another comma-separated string in telemetry: node-stats-include-indices-metrics in node-stats. It has a different behavior, exception is thrown when parameter is not a string. This happens on start, so that's less frustrating for a user. WDYT about aligning both to either support both formats (string and list) or throw a similar exception?

@gareth-ellis gareth-ellis requested a review from gbanasiak March 4, 2025 11:42
Copy link
Copy Markdown
Contributor

@gbanasiak gbanasiak left a comment

Choose a reason for hiding this comment

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

LGTM

@gareth-ellis gareth-ellis enabled auto-merge (squash) March 4, 2025 12:39
@gareth-ellis gareth-ellis merged commit 76aca76 into elastic:master Mar 4, 2025
15 checks passed
@gareth-ellis gareth-ellis deleted the disk-usage-stats branch March 4, 2025 14:01
@dpifke-elastic dpifke-elastic added the bug Something's wrong label Mar 28, 2025
@dpifke-elastic dpifke-elastic added this to the 2.12.0 milestone Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something's wrong

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants