update HTTP v2 listener readme (#9250)
This commit is contained in:
parent
1929e48e61
commit
8eec159871
|
|
@ -1,11 +1,13 @@
|
||||||
# HTTP Listener v2 Input Plugin
|
# HTTP Listener v2 Input Plugin
|
||||||
|
|
||||||
HTTP Listener v2 is a service input plugin that listens for metrics sent via
|
HTTP Listener v2 is a service input plugin that listens for metrics sent via
|
||||||
HTTP. Metrics may be sent in any supported [data format][data_format].
|
HTTP. Metrics may be sent in any supported [data format][data_format]. For metrics in
|
||||||
|
[InfluxDB Line Protocol][line_protocol] it's recommended to use the [`influxdb_listener`][influxdb_listener]
|
||||||
|
or [`influxdb_v2_listener`][influxdb_v2_listener] instead.
|
||||||
|
|
||||||
**Note:** The plugin previously known as `http_listener` has been renamed
|
**Note:** The plugin previously known as `http_listener` has been renamed
|
||||||
`influxdb_listener`. If you would like Telegraf to act as a proxy/relay for
|
`influxdb_listener`. If you would like Telegraf to act as a proxy/relay for
|
||||||
InfluxDB it is recommended to use [`influxdb_listener`][influxdb_listener].
|
InfluxDB it is recommended to use [`influxdb_listener`][influxdb_listener] or [`influxdb_v2_listener`][influxdb_v2_listener].
|
||||||
|
|
||||||
### Configuration:
|
### Configuration:
|
||||||
|
|
||||||
|
|
@ -57,7 +59,7 @@ This is a sample configuration for the plugin.
|
||||||
## Each data format has its own unique set of configuration options, read
|
## Each data format has its own unique set of configuration options, read
|
||||||
## more about them here:
|
## more about them here:
|
||||||
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
||||||
data_format = "influx"
|
data_format = "json"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Metrics:
|
### Metrics:
|
||||||
|
|
@ -83,3 +85,5 @@ curl -i -XGET 'http://localhost:8080/telegraf?host=server01&value=0.42'
|
||||||
|
|
||||||
[data_format]: /docs/DATA_FORMATS_INPUT.md
|
[data_format]: /docs/DATA_FORMATS_INPUT.md
|
||||||
[influxdb_listener]: /plugins/inputs/influxdb_listener/README.md
|
[influxdb_listener]: /plugins/inputs/influxdb_listener/README.md
|
||||||
|
[line_protocol]: https://docs.influxdata.com/influxdb/cloud/reference/syntax/line-protocol/
|
||||||
|
[influxdb_v2_listener]: /plugins/inputs/influxdb_v2_listener/README.md
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue