fix build on linux
This commit is contained in:
parent
4980450a97
commit
3a9299c305
|
@ -1 +1,2 @@
|
||||||
/categraf*
|
/categraf*
|
||||||
|
*.log
|
||||||
|
|
|
@ -13,7 +13,6 @@ import (
|
||||||
|
|
||||||
"flashcat.cloud/categraf/config"
|
"flashcat.cloud/categraf/config"
|
||||||
"flashcat.cloud/categraf/inputs"
|
"flashcat.cloud/categraf/inputs"
|
||||||
"flashcat.cloud/categraf/types"
|
|
||||||
"github.com/toolkits/pkg/container/list"
|
"github.com/toolkits/pkg/container/list"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ import (
|
||||||
|
|
||||||
"flashcat.cloud/categraf/config"
|
"flashcat.cloud/categraf/config"
|
||||||
"flashcat.cloud/categraf/inputs"
|
"flashcat.cloud/categraf/inputs"
|
||||||
"flashcat.cloud/categraf/types"
|
|
||||||
"github.com/toolkits/pkg/container/list"
|
"github.com/toolkits/pkg/container/list"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ import (
|
||||||
"flashcat.cloud/categraf/config"
|
"flashcat.cloud/categraf/config"
|
||||||
"flashcat.cloud/categraf/inputs"
|
"flashcat.cloud/categraf/inputs"
|
||||||
"flashcat.cloud/categraf/pkg/osx"
|
"flashcat.cloud/categraf/pkg/osx"
|
||||||
"flashcat.cloud/categraf/types"
|
|
||||||
"github.com/toolkits/pkg/container/list"
|
"github.com/toolkits/pkg/container/list"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -72,7 +71,7 @@ func (s *SysctlFS) Gather(slist *list.SafeList) {
|
||||||
log.Println("E! failed to gather file-nr:", err)
|
log.Println("E! failed to gather file-nr:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
inputs.PushSamples(fields)
|
inputs.PushSamples(slist, fields)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *SysctlFS) gatherOne(name string, fields map[string]interface{}) error {
|
func (s *SysctlFS) gatherOne(name string, fields map[string]interface{}) error {
|
||||||
|
|
Loading…
Reference in New Issue