influx_connection {influxdbr} | R Documentation |
Create an influxdb_connection object
Description
Create an influxdb_connection object by specifying server connection details. Credentials can also be saved and accessed through a config file.
Usage
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)
Arguments
scheme |
The scheme to use, either http or https. Defaults to http. |
host |
Hostname of the InfluxDB server. Defaults to localhost. |
port |
numerical. Port number of the InfluxDB server. Defaults to 8086. |
user |
username The username to use. Defaults to "user". |
pass |
password The password to use. Defaults to "pass". |
path |
The prefix path on which the InfluxDB is running. Can be useful in proxy situations. |
group |
The group to use within the config file. |
verbose |
logical. Provide additional details? |
config_file |
The configuration file to be used if |
curl_options |
Additional curl arguments created with |
structure of configuration file
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=/