Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTelegrafPlugins = []string{
"cpu",
"disk",
"diskio",
"kernel",
"mem",
"processes",
"swap",
"system",
}
View Source
var ServiceDetails = map[string]map[string]map[string]string{
"windows": {
"default": {
"configPath": "C:\\Program Files\\InfluxData\\telegraf\\telegraf.conf",
"serviceCmd": "C:\\Program Files\\InfluxData\\telegraf\\telegraf.exe",
"startHint": `& "C:\Program Files\InfluxData\telegraf\telegraf.exe" --service-name telegraf service start`,
"restartHint": `& "C:\Program Files\InfluxData\telegraf\telegraf.exe" --service-name telegraf service stop (then start)`,
},
},
"linux": {
"default": {
"configPath": "/etc/telegraf/telegraf.conf",
"serviceCmd": "telegraf",
"startHint": "sudo service telegraf start",
"restartHint": "sudo service telegraf restart",
},
"brew": {
"configPath": "/home/linuxbrew/.linuxbrew/etc/telegraf.conf",
"serviceCmd": "telegraf",
"startHint": "brew services start telegraf",
"restartHint": "brew services restart telegraf",
},
},
"darwin": {
"amd64": {
"configPath": "/usr/local/etc/telegraf.conf",
"serviceCmd": "telegraf",
"startHint": "brew services start telegraf",
"restartHint": "brew services restart telegraf",
},
"arm64": {
"configPath": "/opt/homebrew/etc/telegraf.conf",
"serviceCmd": "telegraf",
"startHint": "brew services start telegraf",
"restartHint": "brew services restart telegraf",
},
},
}
Functions ¶
func GetServiceSettings ¶ added in v0.1.0
func ValidateFilePath ¶
Types ¶
type Telegraf ¶
type Telegraf struct {
// contains filtered or unexported fields
}
func NewTelegrafAgent ¶ added in v0.1.0
func (*Telegraf) InstallPipeline ¶ added in v0.1.0
func (*Telegraf) UninstallPipeline ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.