telegraf/plugins/outputs/http/README.md

42 lines
1.2 KiB
Markdown
Raw Normal View History

2018-05-15 00:15:40 +00:00
# HTTP Output Plugin
This plugin sends metrics in a HTTP message encoded using one of the output
data formats. For data_formats that support batching, metrics are sent in batch format.
2018-05-15 00:15:40 +00:00
### Configuration:
```toml
# A plugin that can transmit metrics over HTTP
2018-05-15 00:15:40 +00:00
[[outputs.http]]
## URL is the address to send metrics to
2018-05-15 00:15:40 +00:00
url = "http://127.0.0.1:8080/metric"
## Timeout for HTTP message
# timeout = "5s"
## HTTP method, one of: "POST" or "PUT"
# method = "POST"
## HTTP Basic Auth credentials
# username = "username"
# password = "pa$$word"
## Additional HTTP headers
# [outputs.http.headers]
# # Should be set manually to "application/json" for json data_format
# Content-Type = "text/plain; charset=utf-8"
## Optional TLS Config
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false
2018-05-15 00:15:40 +00:00
## Data format to output.
## Each data format has it's own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
# data_format = "influx"
2018-05-15 00:15:40 +00:00
```