3 Star 0 Fork 1

mirrors_influxdata/telegraf_1

加入 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 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_influxdata/telegraf_1.git
git@gitee.com:mirrors_influxdata/telegraf_1.git
mirrors_influxdata
telegraf_1
telegraf_1
master

搜索帮助