Skip to content

Commit

Permalink
refactor: rename VolumeTopClients MaxVolumeCount to max_volumes (#3141)
Browse files Browse the repository at this point in the history
refactor: default max_volumes to 5
refactor: add whitespace to make plugin stand-out
  • Loading branch information
cgrinds authored Sep 10, 2024
1 parent e871c0c commit 6f025bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ func (t *TopClients) Init() error {
return err
}

if maxVol := t.Params.GetChildContentS("MaxVolumeCount"); maxVol != "" {
t.maxVolumeCount = defaultTopN

if maxVol := t.Params.GetChildContentS("max_volumes"); maxVol != "" {
if maxVolCount, err := strconv.Atoi(maxVol); err != nil {
t.maxVolumeCount = defaultTopN
} else {
Expand Down
4 changes: 3 additions & 1 deletion conf/restperf/9.12.0/volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ plugins:
- node
- Volume:
include_constituents: false

# - VolumeTopClients:
# # The maximum number of volumes to consider for top client metrics.
# # The actual maximum value is capped at 50, even if a higher number is specified.
# # When enabled, this plugin will collect read/write operations and throughput metrics for the top clients of each volume.
# - schedule:
# - data: 1h # This value should be a multiple of the poll duration. By default, Harvest will check once an hour to see how many volumes have activity_tracking.state set to on.
# - MaxVolumeCount: 5
# - max_volumes: 5

# - LabelAgent:
# # To prevent visibility of transient volumes, uncomment the following lines
# exclude_regex:
Expand Down

0 comments on commit 6f025bd

Please sign in to comment.