docs: Fix various typos in comments (#12888)
This commit is contained in:
parent
bd5f6b7c7c
commit
e4cf2904ca
|
|
@ -9,7 +9,7 @@ This section is for developers who want to create a new aggregator plugin.
|
|||
register themselves. See below for a quick example.
|
||||
* To be available within Telegraf itself, plugins must register themselves
|
||||
using a file in `github.com/influxdata/telegraf/plugins/aggregators/all`
|
||||
named according to the plugin name. Make sure your also add build-tags to
|
||||
named according to the plugin name. Make sure you also add build-tags to
|
||||
conditionally build the plugin.
|
||||
* Each plugin requires a file called `sample.conf` containing the sample configuration
|
||||
for the plugin in TOML format.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ and submit new inputs.
|
|||
themselves. See below for a quick example.
|
||||
- To be available within Telegraf itself, plugins must register themselves
|
||||
using a file in `github.com/influxdata/telegraf/plugins/inputs/all` named
|
||||
according to the plugin name. Make sure your also add build-tags to
|
||||
according to the plugin name. Make sure you also add build-tags to
|
||||
conditionally build the plugin.
|
||||
- Each plugin requires a file called `sample.conf` containing the sample
|
||||
configuration for the plugin in TOML format.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ similar constructs.
|
|||
themselves. See below for a quick example.
|
||||
- To be available within Telegraf itself, plugins must register themselves
|
||||
using a file in `github.com/influxdata/telegraf/plugins/outputs/all` named
|
||||
according to the plugin name. Make sure your also add build-tags to
|
||||
according to the plugin name. Make sure you also add build-tags to
|
||||
conditionally build the plugin.
|
||||
- Each plugin requires a file called `sample.conf` containing the sample
|
||||
configuration for the plugin in TOML format.
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ This section is for developers who want to create a new processor plugin.
|
|||
themselves. See below for a quick example.
|
||||
* To be available within Telegraf itself, plugins must register themselves
|
||||
using a file in `github.com/influxdata/telegraf/plugins/processors/all`
|
||||
named according to the plugin name. Make sure your also add build-tags to
|
||||
named according to the plugin name. Make sure you also add build-tags to
|
||||
conditionally build the plugin.
|
||||
* Each plugin requires a file called `sample.conf` containing the sample
|
||||
configuration for the plugin in TOML format.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// NewRateLimiter returns a rate limiter that will will emit from the C
|
||||
// NewRateLimiter returns a rate limiter that will emit from the C
|
||||
// channel only 'n' times every 'rate' seconds.
|
||||
func NewRateLimiter(n int, rate time.Duration) *rateLimiter {
|
||||
r := &rateLimiter{
|
||||
|
|
|
|||
|
|
@ -137,7 +137,6 @@ func (r *RunningOutput) ID() string {
|
|||
}
|
||||
|
||||
// AddMetric adds a metric to the output.
|
||||
//
|
||||
// Takes ownership of metric
|
||||
func (r *RunningOutput) AddMetric(metric telegraf.Metric) {
|
||||
if ok := r.Config.Filter.Select(metric); !ok {
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ func (rsl *riemannListener) removeConnection(c net.Conn) {
|
|||
/*
|
||||
readMessages will read Riemann messages in binary format
|
||||
from the TCP connection. byte Array p size will depend on the size
|
||||
of the riemann message as sent by the cleint
|
||||
of the riemann message as sent by the client
|
||||
*/
|
||||
func readMessages(r io.Reader, p []byte) error {
|
||||
for len(p) > 0 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue