1 Star 0 Fork 0

李所当然/telegraf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
input.go 656 Bytes
一键复制 编辑 原始数据 按行查看 历史
Steven Soroka 提交于 2020-10-14 11:12 . add plugin documentation
package telegraf
type Input interface {
PluginDescriber
// Gather takes in an accumulator and adds the metrics that the Input
// gathers. This is called every agent.interval
Gather(Accumulator) error
}
type ServiceInput interface {
Input
// Start the ServiceInput. The Accumulator may be retained and used until
// Stop returns.
Start(Accumulator) error
// Stop stops the services and closes any necessary channels and connections.
// Metrics should not be written out to the accumulator once stop returns, so
// Stop() should stop reading and wait for any in-flight metrics to write out
// to the accumulator before returning.
Stop()
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/lilw1/telegraf.git
git@gitee.com:lilw1/telegraf.git
lilw1
telegraf
telegraf
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385