influxConnection: Connection to the InfluxDb using environtment variables

Description Usage Arguments structure of configuration file References

Description

Requires: INFLUX_HOST INFLUX_USERNAME INFLUX_PORT INFLUX_PASSWORD

Usage

1
2
3
4
influxConnection(scheme = c("http", "https"),
  host = Sys.getenv("INFLUX_HOST"), user = Sys.getenv("INFLUX_USERNAME"),
  port = Sys.getenv("INFLUX_PORT", 8086),
  pass = Sys.getenv("INFLUX_PASSWORD"))

Arguments

scheme

The scheme to use, either http or https. Defaults to http.

host

Hostname of the InfluxDB server. Defaults to localhost.

user

username The username to use. Defaults to "user".

port

numerical. Port number of the InfluxDB server. Defaults to 8086.

pass

password The password to use. Defaults to "pass".

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/


byapparov/rmeta documentation built on May 10, 2019, 1:18 a.m.