Skip to content

Commit

Permalink
chore(docs): improve for influxdb2
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle authored and genofire committed Jul 4, 2024
1 parent bbe6837 commit a4ffc45
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions config_example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ delete_interval = "1h"
#enable = true

# Save collected data to InfluxDB.
# There are the following measurments:
# There are the following measurements:
# node: store node specific data i.e. clients memory, airtime
# link: store link tq between two interfaces of two different nodes
# global: store global data, i.e. count of clients and nodes
Expand All @@ -220,7 +220,7 @@ password = ""
#site = "ffhb"

# Save collected data to InfluxDB2.
# There are the following measurments:
# There are the following measurements:
# node: store node specific data i.e. clients memory, airtime
# link: store link tq between two interfaces of two different nodes with i.e. nodeid, address, hostname
# global: store global data, i.e. count of clients and nodes
Expand All @@ -233,12 +233,12 @@ address = "http://localhost:8086"
token = ""
organization_id = ""
# fallback of no specific bucket for measurement is setup
bucket_default = ""
bucket_default = "yanic"

# Specify bucket per measurement (of not set fallback bucket_default is used or panic)
#
# WARNING:
# yanic do NOT prune node's data (so please setup it in InfluxDB2 setup).
# yanic does NOT prune node's data (so please set up data retention in InfluxDB2 setup).
#
# We highly recommend to setup e.g. Data retention in your InfluxDB2 server per measurements.
# https://docs.influxdata.com/influxdb/v2/reference/internals/data-retention/
Expand All @@ -247,7 +247,7 @@ bucket_default = ""
#link = "yanic-temp"
#node = "yanic-temp"
#dhcp = "yanic-temp"
global = "yanic"
global = "yanic-persistent"
#firmware = "yanic-temp"
#model = "yanic-temp"
#autoupdater = "yanic-temp"
Expand Down
18 changes: 9 additions & 9 deletions docs/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ site = "ffhb"
### [[database.connection.influxdb2]]
Save collected data to InfluxDB2.

There are the following measurments:
There are the following measurements:

- **node**: store node specific data i.e. clients memory, airtime
- **link**: store link tq between two interfaces of two different nodes with i.e. nodeid, address, hostname
Expand All @@ -407,7 +407,7 @@ There are the following measurments:
A bucket has to be set in buckets and buchet_default otherwise yanic would panic.

!!! warning
yanic do NOT prune node's data (so please setup it in InfluxDB2 setup).
yanic does NOT prune node's data (so please set up data retention in InfluxDB2 setup).

We highly recommend to setup e.g. [Data retention](https://docs.influxdata.com/influxdb/v2/reference/internals/data-retention/) in your InfluxDB2 server per measurements.

Expand All @@ -417,13 +417,13 @@ enable = false
address = "http://localhost:8086" # (1)
token = "" # (2)
organization_id = "" # (3)
bucket_default = "" # (4)
bucket_default = "yanic" # (4)

[database.connection.influxdb2.buckets] # (5)
#link = "yanic-temp"
#node = "yanic-temp"
#dhcp = "yanic-temp"
global = "yanic"
global = "yanic-persistent"
#firmware = "yanic-temp"
#model = "yanic-temp"
#autoupdater = "yanic-temp"
Expand All @@ -438,19 +438,19 @@ global = "yanic"
#site = "ffhb"
```

1. Address to connect on InfluxDB2 server.
2. Token to get acces to InfluxDB2 server.
1. Address to connect to the InfluxDB2 server.
2. Token to get access to InfluxDB2 server.
3. Set organization using the InfluxDB2 server.

4. Bucket in which are the data stored.

Fallback of bucket per measurment, see `[database.connection.influxdb2.buckets]`
Fallback of bucket per measurement, see `[database.connection.influxdb2.buckets]`

5. Buckets per measurement.

If not set data `bucket_default` is used.
If no buckets are set, the default bucket `bucket_default` is used.

6. You could set manuelle tags with inserting into a influxdb.
6. You can set additional tags which are added to all data written into the influxdb.

Useful if you want to identify the yanic instance when you use multiple own on the same influxdb (e.g. multisites).

Expand Down

0 comments on commit a4ffc45

Please sign in to comment.