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.
|
register themselves. See below for a quick example.
|
||||||
* To be available within Telegraf itself, plugins must register themselves
|
* To be available within Telegraf itself, plugins must register themselves
|
||||||
using a file in `github.com/influxdata/telegraf/plugins/aggregators/all`
|
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.
|
conditionally build the plugin.
|
||||||
* Each plugin requires a file called `sample.conf` containing the sample configuration
|
* Each plugin requires a file called `sample.conf` containing the sample configuration
|
||||||
for the plugin in TOML format.
|
for the plugin in TOML format.
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ and submit new inputs.
|
||||||
themselves. See below for a quick example.
|
themselves. See below for a quick example.
|
||||||
- To be available within Telegraf itself, plugins must register themselves
|
- To be available within Telegraf itself, plugins must register themselves
|
||||||
using a file in `github.com/influxdata/telegraf/plugins/inputs/all` named
|
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.
|
conditionally build the plugin.
|
||||||
- Each plugin requires a file called `sample.conf` containing the sample
|
- Each plugin requires a file called `sample.conf` containing the sample
|
||||||
configuration for the plugin in TOML format.
|
configuration for the plugin in TOML format.
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ similar constructs.
|
||||||
themselves. See below for a quick example.
|
themselves. See below for a quick example.
|
||||||
- To be available within Telegraf itself, plugins must register themselves
|
- To be available within Telegraf itself, plugins must register themselves
|
||||||
using a file in `github.com/influxdata/telegraf/plugins/outputs/all` named
|
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.
|
conditionally build the plugin.
|
||||||
- Each plugin requires a file called `sample.conf` containing the sample
|
- Each plugin requires a file called `sample.conf` containing the sample
|
||||||
configuration for the plugin in TOML format.
|
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.
|
themselves. See below for a quick example.
|
||||||
* To be available within Telegraf itself, plugins must register themselves
|
* To be available within Telegraf itself, plugins must register themselves
|
||||||
using a file in `github.com/influxdata/telegraf/plugins/processors/all`
|
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.
|
conditionally build the plugin.
|
||||||
* Each plugin requires a file called `sample.conf` containing the sample
|
* Each plugin requires a file called `sample.conf` containing the sample
|
||||||
configuration for the plugin in TOML format.
|
configuration for the plugin in TOML format.
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"time"
|
"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.
|
// channel only 'n' times every 'rate' seconds.
|
||||||
func NewRateLimiter(n int, rate time.Duration) *rateLimiter {
|
func NewRateLimiter(n int, rate time.Duration) *rateLimiter {
|
||||||
r := &rateLimiter{
|
r := &rateLimiter{
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,6 @@ func (r *RunningOutput) ID() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddMetric adds a metric to the output.
|
// AddMetric adds a metric to the output.
|
||||||
//
|
|
||||||
// Takes ownership of metric
|
// Takes ownership of metric
|
||||||
func (r *RunningOutput) AddMetric(metric telegraf.Metric) {
|
func (r *RunningOutput) AddMetric(metric telegraf.Metric) {
|
||||||
if ok := r.Config.Filter.Select(metric); !ok {
|
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
|
readMessages will read Riemann messages in binary format
|
||||||
from the TCP connection. byte Array p size will depend on the size
|
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 {
|
func readMessages(r io.Reader, p []byte) error {
|
||||||
for len(p) > 0 {
|
for len(p) > 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue