Linux/InfluxDB

From Wiki
< Linux
Revision as of 20:31, 5 December 2023 by Marcluer (talk | contribs)


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