Skip to content

Commit

Permalink
Add link to CodeStyle wiki page in plugin guides
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Dec 28, 2018
1 parent 60cbdcb commit 1d6ff4f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/AGGREGATORS.md
Expand Up @@ -17,6 +17,7 @@ This section is for developers who want to create a new aggregator plugin.
through it. This should be done using the builtin `HashID()` function of
each metric.
* When the `Reset()` function is called, all caches should be cleared.
- Follow the recommended [CodeStyle][].

### Aggregator Plugin Example

Expand Down Expand Up @@ -124,3 +125,4 @@ func init() {

[telegraf.Aggregator]: https://godoc.org/github.com/influxdata/telegraf#Aggregator
[SampleConfig]: https://github.com/influxdata/telegraf/wiki/SampleConfig
[CodeStyle]: https://github.com/influxdata/telegraf/wiki/CodeStyle
2 changes: 2 additions & 0 deletions docs/INPUTS.md
Expand Up @@ -20,6 +20,7 @@ and submit new inputs.
consult the [SampleConfig][] page for the latest style
guidelines.
- The `Description` function should say in one line what this plugin does.
- Follow the recommended [CodeStyle][].

Let's say you've written a plugin that emits metrics about processes on the
current host.
Expand Down Expand Up @@ -137,6 +138,7 @@ Check the [amqp_consumer][] for an example implementation.
[prom metric types]: https://prometheus.io/docs/concepts/metric_types/
[input data formats]: https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
[SampleConfig]: https://github.com/influxdata/telegraf/wiki/SampleConfig
[CodeStyle]: https://github.com/influxdata/telegraf/wiki/CodeStyle
[telegraf.Input]: https://godoc.org/github.com/influxdata/telegraf#Input
[telegraf.ServiceInput]: https://godoc.org/github.com/influxdata/telegraf#ServiceInput
[telegraf.Accumulator]: https://godoc.org/github.com/influxdata/telegraf#Accumulator
Expand Down
2 changes: 2 additions & 0 deletions docs/OUTPUTS.md
Expand Up @@ -15,6 +15,7 @@ similar constructs.
plugin can be configured. This is included in `telegraf config`. Please
consult the [SampleConfig][] page for the latest style guidelines.
- The `Description` function should say in one line what this output does.
- Follow the recommended [CodeStyle][].

### Output Plugin Example

Expand Down Expand Up @@ -92,4 +93,5 @@ You should also add the following to your `SampleConfig()`:
[file]: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/file
[output data formats]: https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
[SampleConfig]: https://github.com/influxdata/telegraf/wiki/SampleConfig
[CodeStyle]: https://github.com/influxdata/telegraf/wiki/CodeStyle
[telegraf.Output]: https://godoc.org/github.com/influxdata/telegraf#Output
2 changes: 2 additions & 0 deletions docs/PROCESSORS.md
Expand Up @@ -16,6 +16,7 @@ This section is for developers who want to create a new processor plugin.
plugin can be configured. This is included in `telegraf config`. Please
consult the [SampleConfig][] page for the latest style guidelines.
* The `Description` function should say in one line what this processor does.
- Follow the recommended [CodeStyle][].

### Processor Plugin Example

Expand Down Expand Up @@ -60,4 +61,5 @@ func init() {
```

[SampleConfig]: https://github.com/influxdata/telegraf/wiki/SampleConfig
[CodeStyle]: https://github.com/influxdata/telegraf/wiki/CodeStyle
[telegraf.Processor]: https://godoc.org/github.com/influxdata/telegraf#Processor

0 comments on commit 1d6ff4f

Please sign in to comment.