remove _ in input plugin name

This commit is contained in:
Ulric Qin 2022-04-20 16:38:40 +08:00
parent 872ced5e38
commit 4e471c0a28
12 changed files with 12 additions and 18 deletions

View File

@ -19,14 +19,8 @@ tar zcvf categraf.tar.gz categraf conf
## todo
- []ntp
- [x]exec
- [x]ping
- [x]net_response
- [x]http_response(add cert check)
- []oom
- []promscrape
- []procstat
- [x]oracle
- []promscrape
- []mysql
- []redis
- []nginx vts

View File

@ -17,12 +17,12 @@ import (
_ "flashcat.cloud/categraf/inputs/disk"
_ "flashcat.cloud/categraf/inputs/diskio"
_ "flashcat.cloud/categraf/inputs/exec"
_ "flashcat.cloud/categraf/inputs/http_response"
_ "flashcat.cloud/categraf/inputs/httpresponse"
_ "flashcat.cloud/categraf/inputs/kernel"
_ "flashcat.cloud/categraf/inputs/linux_sysctl_fs"
_ "flashcat.cloud/categraf/inputs/linuxsysctlfs"
_ "flashcat.cloud/categraf/inputs/mem"
_ "flashcat.cloud/categraf/inputs/net"
_ "flashcat.cloud/categraf/inputs/net_response"
_ "flashcat.cloud/categraf/inputs/netresponse"
_ "flashcat.cloud/categraf/inputs/netstat"
_ "flashcat.cloud/categraf/inputs/oracle"
_ "flashcat.cloud/categraf/inputs/ping"

View File

@ -1,4 +1,4 @@
package http_response
package httpresponse
import (
"errors"
@ -24,7 +24,7 @@ import (
)
const (
inputName = "http_response"
inputName = "httpresponse"
Success uint64 = 0
ConnectionFailed uint64 = 1

View File

@ -1,4 +1,4 @@
package http_response
package httpresponse
import (
"crypto/tls"

View File

@ -1,7 +1,7 @@
//go:build linux
// +build linux
package linux_sysctl_fs
package linuxsysctlfs
import (
"bytes"
@ -17,7 +17,7 @@ import (
"flashcat.cloud/categraf/types"
)
const inputName = "linux_sysctl_fs"
const inputName = "linuxsysctlfs"
type SysctlFS struct {
PrintConfigs bool `toml:"print_configs"`

View File

@ -1,4 +1,4 @@
//go:build !linux
// +build !linux
package linux_sysctl_fs
package linuxsysctlfs

View File

@ -1,4 +1,4 @@
package net_response
package netresponse
import (
"bufio"
@ -19,7 +19,7 @@ import (
)
const (
inputName = "net_response"
inputName = "netresponse"
Success uint64 = 0
Timeout uint64 = 1