Skip to content

Commit

Permalink
feat(inputs.infiniband): apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
  • Loading branch information
2 people authored and izekri committed Jan 31, 2025
1 parent 23f19f0 commit 344d761
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugins/inputs/infiniband/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
[[inputs.infiniband]]
# no configuration

## By default, don't gather RDMA counters
# rdma = false
## Collect RDMA counters
# gather_rdma = false
```

## Metrics
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/infiniband/infiniband.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
var sampleConfig string

type Infiniband struct {
RDMA bool `toml:"gather_rdma"`
Log telegraf.Logger `toml:"-"`
RDMA bool `toml:"rdma" default:"false"`
}

func (*Infiniband) SampleConfig() string {
Expand Down
4 changes: 2 additions & 2 deletions plugins/inputs/infiniband/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
[[inputs.infiniband]]
# no configuration

## By default, don't gather RDMA counters
# rdma = false
## Collect RDMA counters
# gather_rdma = false

0 comments on commit 344d761

Please sign in to comment.