Skip to content

Commit 25dddc1

Browse files
authored
Merge pull request #36 from unpoller/dn2_influxdb
update influx directions
2 parents 20213c4 + be8b030 commit 25dddc1

File tree

3 files changed

+27
-29
lines changed

3 files changed

+27
-29
lines changed

documentation/docs/dependencies/influxdb.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,20 @@ There are no pre-built graphs to display the data it collects.
1919
### Windows
2020

2121
Using Power Shell (Run as Administrator)
22+
2223
```shell
2324
wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.10_windows_amd64.zip -UseBasicParsing -OutFile influxdb-1.8.10_windows_amd64.zip
2425
Expand-Archive .\influxdb-1.8.10_windows_amd64.zip -DestinationPath 'C:\Program Files\InfluxData\influxdb\'
2526
```
27+
2628
Windows InfluxDB 1.x directions came [from here](https://portal.influxdata.com/downloads/)
2729

2830
**Start & configure:**
31+
2932
- Run `influxd.exe`
3033
- [Post setup](influxdb.md#post-setup) configuration
3134

32-
*Default install path: 'C:\Program Files\InfluxData\influxdb\'*
33-
35+
_Default install path: 'C:\Program Files\InfluxData\influxdb\'_
3436

3537
### CentOS 7
3638

@@ -62,6 +64,7 @@ You need [Homebrew](https://brew.sh):
6264
```shell
6365
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
6466
```
67+
6568
```shell
6669
brew install influxdb
6770
brew services restart influxdb
@@ -72,11 +75,10 @@ brew services restart influxdb
7275
Pull the container and run InfluxDB like this:
7376

7477
```shell
75-
docker pull influxdb:1
78+
docker pull influxdb:1.8
7679
docker run -p 8086:8086 \
77-
-e INFLUXDB_DB=unifi \
78-
-e INFLUXDB_ADMIN_USER=unifi \
79-
-e INFLUXDB_ADMIN_PASSWORD=changeme \
80+
-e INFLUXDB_DB=unpoller \
81+
-e INFLUXDB_HTTP_AUTH_ENABLED=false \
8082
-v /YOURLOCALPATH/influxdb:/var/lib/influxdb \
8183
influxdb:1.8
8284
```
@@ -94,17 +96,23 @@ Get shell access to wherever it is and run the command `influx`
9496
Create the database:
9597

9698
```none
97-
CREATE DATABASE unifi
98-
USE unifi
99+
CREATE DATABASE unpoller
100+
```
101+
102+
We recommend running InfluxDB without authentication enabled,
103+
but if you wish to enable, add a user and give it access to the database.
104+
105+
```none
106+
USE unpoller
99107
CREATE USER unifipoller WITH PASSWORD 'unifipoller' WITH ALL PRIVILEGES
100-
GRANT ALL ON unifi TO unifipoller
108+
GRANT ALL ON unpoller TO unifipoller
101109
```
102110

103111
Optionally - and this is a very sensible idea - set limits on how much data you wish to retain
104112
by implementing a retention policy. For example, to hold data for 32 days add the command:
105113

106114
```none
107-
CREATE RETENTION POLICY retention_policy ON unifi DURATION 32d REPLICATION 1
115+
CREATE RETENTION POLICY retention_policy ON unpoller DURATION 32d REPLICATION 1
108116
```
109117

110118
If you're using InfluxDB 2.x (not recommended at this time), you can set the retention policy by exec-ing into the container:

documentation/docs/help/common.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,7 @@ It must be enabled in both the poller config and in your UniFi controller. Two s
1616
### Check the port used to connect to the controller
1717

1818
It should be `8443` if you are using a non-unifios interface (eg the original Cloudkey with
19-
old firmware) and `443` (or just omitted) if you are using a unifios device (UDM-Pro, UDM, UXG, etc)
20-
21-
### Run Updated Components
22-
23-
Running out of date components may result in missing data, or errors from Grafana.
24-
25-
Make sure you're running up-to-date software. InfluxDB must be at least 1.7.x.
26-
Version 1.7.9 is out and it works great. Grafana 6.5.2 also works great,
27-
and any version older than 6.4.x is going to give you problems.
28-
UniFi Poller should be at least version 1.6.3 if you are seeking help.
19+
old firmware) and `443` (or just omitted) if you are using a unifios device (UDM-Pro, UDM, UXG, etc)
2920

3021
### Check Log Files
3122

@@ -43,13 +34,12 @@ If you are a Docker user then check out [Dozzle](https://dozzle.dev/)
4334

4435
Many users make typos in their data source. Sometimes on the URLs, sometimes on the passwords.
4536
This will cause data to not show up and the dashboards may provide red error messages.
46-
Most data sources do not have paths; just `http://ip:port`.
37+
Most data sources do not have paths; just `http://ip:port`.
4738

4839
### Double-Check Passwords
4940

50-
The default username used to be `influxdb`, but has been changed to `unifipoller`.
5141
Keep this in mind when setting things up. Can't tell you how many times someone had
52-
issues only to find a bad password. Check it, check it again; log in with it yourself.
42+
issues only to find a bad password. Check it, check it again; **log in with it yourself**.
5343
The poller log should give you clues if this is the problem.
5444

5545
### Dashboard Variables

documentation/docs/install/cloudkey.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,21 @@ Add user to influx; [from here](https://v2.docs.influxdata.com/v2.0/users/create
4545

4646
```shell
4747
influx -host localhost -port 8086
48-
CREATE DATABASE unifi
49-
USE unifi
48+
CREATE DATABASE unpoller
49+
USE unpoller
5050
CREATE USER unifipoller WITH PASSWORD 'unifipoller' WITH ALL PRIVILEGES
51-
GRANT ALL ON unifi TO unifipoller
51+
GRANT ALL ON unpoller TO unifipoller
5252
```
5353

5454
:::note
55-
For InfluxDB on a CloudKey it is *highly* advisable to add a retention policy to
55+
For InfluxDB on a CloudKey it is _highly_ advisable to add a retention policy to
5656
prevent the database from growing in uncontrollably.
5757
:::
5858

5959
#### Install Unpoller
6060

6161
Linux repository hosting provided by
62-
[![packagecloud](https://docs.golift.io/integrations/packagecloud-full.png "PackageCloud.io")](http://packagecloud.io)
62+
[![packagecloud](https://docs.golift.io/integrations/packagecloud-full.png 'PackageCloud.io')](http://packagecloud.io)
6363

6464
Install the Go Lift package repo and Unpoller with this command:
6565

@@ -70,7 +70,7 @@ curl -s https://golift.io/repo.sh | sudo bash -s - unpoller
7070
### Current Firmware: `unifios`
7171

7272
There is an existing suite for installing `podman` containers to run on `unifios` -
73-
see [here](https://github.com/boostchicken/udm-utilities). At the time of writing we are not
73+
see [here](https://github.com/boostchicken/udm-utilities). At the time of writing we are not
7474
aware of any user implementing Unpoller using this method, but it should be straightforward.
7575

7676
## Configuration

0 commit comments

Comments
 (0)