Create an influxdb_connection object by specifying server connection details. Credentials can also be saved and accessed through a config file.
influx_connection(scheme = c("http", "https"), host = "localhost",
port = 8086, user = "user", pass = "pass", path = "/", group = NULL,
verbose = FALSE, config_file = "~/.influxdb.cnf", curl_options = NULL)
The scheme to use, either http or https. Defaults to http.
Hostname of the InfluxDB server. Defaults to localhost.
numerical. Port number of the InfluxDB server. Defaults to 8086.
username The username to use. Defaults to "user".
password The password to use. Defaults to "pass".
The prefix path on which the InfluxDB is running. Can be useful in proxy situations.
The group to use within the config file.
logical. Provide additional details?
The configuration file to be used if group
is
specified.
Additional curl arguments created with config
(e.g. httr::config(verbose = TRUE, timeout = 5, ssl_verifypeer = FALSE)).
A configuration file may contain several connection settings. Each setting has the following structure:
[group] scheme=http host=localhost port=8086 user=username pass=password path=/