influx_connection: Create an influxdb_connection object

Description Usage Arguments structure of configuration file References

Description

Create an influxdb_connection object by specifying server connection details. Credentials can also be saved and accessed through a config file.

Usage

1
2
3
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 group is specified.

curl_options

Additional curl arguments created with config (e.g. httr::config(verbose = TRUE, timeout = 5, ssl_verifypeer = FALSE)).

structure of configuration file

A configuration file may contain several connection settings. Each setting has the following structure:

1
2
3
4
5
6
7
[group]
scheme=http
host=localhost  
port=8086
user=username
pass=password  
path=/

References

https://influxdb.com/


influxdbr documentation built on May 2, 2019, 6:06 a.m.