Skip to content

Commit

Permalink
feat(processors.batch): rename num_batches to batches
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsStegman committed Sep 11, 2024
1 parent 2d80838 commit b3212e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/processors/batch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
batch_tag = "my_batch"

## The number of batches to create
num_batches = 16
batches = 16

## Do not assign metrics with an existing batch assignment to a
## different batch.
Expand All @@ -41,7 +41,7 @@ The example below uses these settings:
batch_tag = "batch"

## The number of batches to create
num_batches = 3
batches = 3
```

```diff
Expand Down
2 changes: 1 addition & 1 deletion plugins/processors/batch/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var sampleConfig string

type Batch struct {
BatchTag string `toml:"batch_tag"`
NumBatches uint64 `toml:"num_batches"`
NumBatches uint64 `toml:"batches"`
SkipExisting bool `toml:"skip_existing"`

// the number of metrics that have been processed so far
Expand Down
2 changes: 1 addition & 1 deletion plugins/processors/batch/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
batch_tag = "my_batch"

## The number of batches to create
num_batches = 16
batches = 16

## Do not assign metrics with an existing batch assignment to a
## different batch.
Expand Down

0 comments on commit b3212e8

Please sign in to comment.