Update telegraf config for TLS docs

pull/533/head
pierwill 2019-10-22 10:40:28 -07:00
parent ede9af0e0e
commit ba56b550aa
1 changed files with 7 additions and 7 deletions

View File

@ -125,13 +125,13 @@ That's it! You've successfully set up HTTPS with InfluxDB.
## Connect Telegraf to a secured InfluxDB instance ## Connect Telegraf to a secured InfluxDB instance
Connecting [Telegraf](/telegraf/latest/) to an InfluxDB instance that's using To connect [Telegraf](/telegraf/latest/) to an InfluxDB 2.0 instance with TLS enabled,
HTTPS requires some additional steps. update the following `influxdb_v2` output settings in your Telegraf configuration file:
In the Telegraf configuration file (`/etc/telegraf/telegraf.conf`), edit the `urls` - Update urls to use https instead of http.
setting to indicate `https` instead of `http`. - If using a self-signed certificate, uncomment and set `insecure_skip_verify` to true.
(Change `localhost` to the relevant domain name if necessary.)
If you're using a self-signed certificate, uncomment the `insecure_skip_verify` setting and set it to `true`. ### Example configuration
```toml ```toml
############################################################################### ###############################################################################
@ -144,7 +144,7 @@ If you're using a self-signed certificate, uncomment the `insecure_skip_verify`
## ##
## Multiple URLs can be specified for a single cluster, only ONE of the ## Multiple URLs can be specified for a single cluster, only ONE of the
## urls will be written to each interval. ## urls will be written to each interval.
urls = ["http://127.0.0.1:9999"] urls = ["https://127.0.0.1:9999"]
[...] [...]