Skip to content

Commit cb067f2

Browse files
authored
align grafana and docker compose instructions
The grafana directions were giving me a 401 unauthorized error. It seems that adding the Authorization header with the token, along with updating the database and other default names, got the connection to work properly.
1 parent 45c08d7 commit cb067f2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

documentation/docs/install/grafana.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ The following explains the steps for InfluxDB; the Prometheus steps are very sim
1919
- Select the InfluxDB option
2020
- Set the following fields:
2121
- - Name = `UniFi InfluxDB` (or whatever name you want) and set to default
22-
- - URL = `http://influxdb1:8086` or `http://localhost:8086`
23-
- - Database = `unifi`
24-
- - Username = `unifipoller`
25-
- - Password = `unifipoller`
22+
- - URL = `http://influxdb:8086` or `http://localhost:8086`
23+
- - Database = `unpoller`
24+
- - Username = `unpoller`
25+
- - Password = `CHANGEME` (or whatever you changed `INFLUXDB_ADMIN_PASSWORD` to)
26+
- Under "Custom HTTP Headers" add an `Authorization` header, with value `Token unpollersecret` (optionally replace `unpollersecret` with whatever you changed `INFLUXDB_ADMIN_TOKEN` to).
2627
- No other fields need to be changed or set on this page.
2728
- Click `Save & Test`
2829
- You should get green banner above the save and test that says 'Data Source is Working'

0 commit comments

Comments
 (0)