Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2cb9dd5
add nftables input plugin
ajohnson-aurora Sep 8, 2025
4e330fd
Add Sudo and Binary options
ansoni Sep 8, 2025
d8405dc
Remove unused configuration example
ansoni Sep 8, 2025
8a9e9da
Update Readme with linter feedback
ajohnson-aurora Sep 18, 2025
e4b33a2
go fmt updates
ajohnson-aurora Sep 18, 2025
9775fe8
PR Feedback
ajohnson-aurora Sep 23, 2025
5fc2700
missed long line
ajohnson-aurora Sep 23, 2025
edd1bd5
Add notlinux compliation and Address some README lint issues
ajohnson-aurora Sep 23, 2025
841b7e4
fix `make check` errors
ajohnson-aurora Sep 23, 2025
0921ca1
PR Feedback
ajohnson-aurora Oct 6, 2025
a55e09d
Add back speculative Telegraf Version
ajohnson-aurora Oct 6, 2025
0fef89a
More PR Feedback
ajohnson-aurora Oct 7, 2025
5651dfc
PR Feedback
ajohnson-aurora Oct 13, 2025
a46b125
Linter fixes
ajohnson-aurora Oct 13, 2025
34fd401
fix macos linter
ajohnson-aurora Oct 13, 2025
8dd3b49
PR Feedback
ajohnson-aurora Nov 4, 2025
56a509e
Use implicit declaration of error
srebhan Nov 5, 2025
a318d13
Improve comment
srebhan Nov 13, 2025
5f42e15
Cleanup init
srebhan Nov 13, 2025
ed20c94
Cleanup formatting in sample.conf
srebhan Nov 13, 2025
7fbca44
Cleanup variable naming and parameter order
srebhan Nov 13, 2025
f66f82e
Translate unit-test into testcase-based tests
srebhan Nov 13, 2025
15740e4
Remove debug output
srebhan Nov 13, 2025
41926d7
Merge functions
srebhan Nov 13, 2025
24ef6d9
Improve error reporting
srebhan Nov 13, 2025
4314b90
Add test-case for non-existant table
srebhan Nov 13, 2025
0da365f
Update plugins/inputs/nftables/README.md
skartikey Nov 18, 2025
e50e2a1
Update plugins/inputs/nftables/README.md
skartikey Nov 18, 2025
2095cbf
fix(inputs.nftables): Fix typo in test case directory name
skartikey Nov 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix make check errors
  • Loading branch information
ajohnson-aurora committed Sep 23, 2025
commit 841b7e4c7643fc82efa822c6554f9f587c01aefb
18 changes: 9 additions & 9 deletions plugins/inputs/nftables/nftables_notlinux.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
package nftables

import (
_ "embed"
_ "embed"

"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)

//go:embed sample.conf
var sampleConfig string

type Nftables struct {
Log telegraf.Logger `toml:"-"`
Log telegraf.Logger `toml:"-"`
}

func (*Nftables) SampleConfig() string { return sampleConfig }

func (i *Nftables) Init() error {
i.Log.Warn("Current platform is not supported")
return nil
i.Log.Warn("Current platform is not supported")
return nil
}

func (*Nftables) Gather(_ telegraf.Accumulator) error { return nil }

func init() {
inputs.Add("nftables", func() telegraf.Input {
return &Nftables{}
})
inputs.Add("nftables", func() telegraf.Input {
return &Nftables{}
})
}
Loading