Linux/InfluxDB: Difference between revisions

From Wiki
mNo edit summary
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Preparing v1 access via InfluxDB 2.x ==
== Preparing v1 access via InfluxDB 2.x ==
* Create token in gui
* Create token in gui
Line 8: Line 6:
* Get Organization Name
* Get Organization Name
** "User" -> "About" -> "Organization Profile" -> "Name"
** "User" -> "About" -> "Organization Profile" -> "Name"
<br>
 
== Create new v1 user ==
* Access influx command line (docker exec -it influxdb sh)
* Access influx command line (docker exec -it influxdb sh)
* Create v1 user
<pre>
<pre>
influx v1 auth create -o {orgName} --username userv1 --password password1 -t my-token --read-bucket d98ced31b2232519 --write-bucket d98ced31b2232519
influx v1 auth create -o {orgName} --username {newuser} --password {newpass} -t {token} --read-bucket {bucketID} --write-bucket {bucketID}
</pre>


== Settings in Node-RED ==
<pre>
version = 1.x
database = from previous step (e.g. mybucket)
username = {newuser}
password = {newpass}
</pre>
</pre>


== Settings in Grafana ==
<pre>
Name:            InfluxDB
Default:        true
Query Language:  InfluxQL
URL:            http://{containername}:8086
Allowed cookies:
Timeout:


Database:        mybucket
User:            {newuser}
Password:        {newpass}
HTTP Method:    GET
</pre>


 
== Links ==
 
* https://community.influxdata.com/t/unable-to-connect-v1-clients-to-influxdbv2/21630/7
 


[[Category:Linux/Services]]
[[Category:Linux/Services]]
[[Category:Linux]]
[[Category:Linux]]

Latest revision as of 20:31, 5 December 2023

Preparing v1 access via InfluxDB 2.x

  • Create token in gui
    • "Load Data" -> "API Tokens"
  • Get Bucket ID
    • "Load Data" -> "Buckets"
  • Get Organization Name
    • "User" -> "About" -> "Organization Profile" -> "Name"

Create new v1 user

  • Access influx command line (docker exec -it influxdb sh)
influx v1 auth create -o {orgName} --username {newuser} --password {newpass} -t {token} --read-bucket {bucketID} --write-bucket {bucketID}

Settings in Node-RED

version = 1.x
database = from previous step (e.g. mybucket)
username = {newuser}
password = {newpass}

Settings in Grafana

Name:            InfluxDB
Default:         true
Query Language:  InfluxQL
URL:             http://{containername}:8086
Allowed cookies: 
Timeout:

Database:        mybucket
User:            {newuser}
Password:        {newpass}
HTTP Method:     GET

Links