Description Usage Arguments structure of configuration file References
Requires: INFLUX_HOST INFLUX_USERNAME INFLUX_PORT INFLUX_PASSWORD
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"))
|
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". |
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=/
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.