@@ -31,7 +31,7 @@ jobs:
|
|||||||
# Service containers to run with `build` (Required for end-to-end testing)
|
# Service containers to run with `build` (Required for end-to-end testing)
|
||||||
services:
|
services:
|
||||||
influxdb:
|
influxdb:
|
||||||
image: influxdb:2.2
|
image: influxdb:2.8
|
||||||
env:
|
env:
|
||||||
DOCKER_INFLUXDB_INIT_MODE: setup
|
DOCKER_INFLUXDB_INIT_MODE: setup
|
||||||
DOCKER_INFLUXDB_INIT_USERNAME: admin
|
DOCKER_INFLUXDB_INIT_USERNAME: admin
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
# Service containers to run with `build` (Required for end-to-end testing)
|
# Service containers to run with `build` (Required for end-to-end testing)
|
||||||
services:
|
services:
|
||||||
influxdb:
|
influxdb:
|
||||||
image: influxdb:2.2
|
image: influxdb:2.8
|
||||||
env:
|
env:
|
||||||
DOCKER_INFLUXDB_INIT_MODE: setup
|
DOCKER_INFLUXDB_INIT_MODE: setup
|
||||||
DOCKER_INFLUXDB_INIT_USERNAME: admin
|
DOCKER_INFLUXDB_INIT_USERNAME: admin
|
||||||
|
|||||||
+4
-4
@@ -177,7 +177,7 @@ Depending on the functionality you are adding, you may need to setup a developme
|
|||||||
```
|
```
|
||||||
4. start a InfluxDB docker container.
|
4. start a InfluxDB docker container.
|
||||||
```bash
|
```bash
|
||||||
docker run -p 8086:8086 --rm influxdb:2.2
|
docker run -p 8086:8086 --rm influxdb:2.8
|
||||||
```
|
```
|
||||||
5. start the scrutiny web server
|
5. start the scrutiny web server
|
||||||
```bash
|
```bash
|
||||||
@@ -230,7 +230,7 @@ you'll need to follow the steps below:
|
|||||||
```
|
```
|
||||||
4. start a InfluxDB docker container.
|
4. start a InfluxDB docker container.
|
||||||
```bash
|
```bash
|
||||||
docker run -p 8086:8086 --rm influxdb:2.2
|
docker run -p 8086:8086 --rm influxdb:2.8
|
||||||
```
|
```
|
||||||
5. build the Angular Frontend Application
|
5. build the Angular Frontend Application
|
||||||
```bash
|
```bash
|
||||||
@@ -254,7 +254,7 @@ If you'd like to populate the database with some test data, you can run the fol
|
|||||||
> This is done automatically by the `webapp/backend/pkg/models/testdata/helper.go` script
|
> This is done automatically by the `webapp/backend/pkg/models/testdata/helper.go` script
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run -p 8086:8086 --rm influxdb:2.2
|
docker run -p 8086:8086 --rm influxdb:2.8
|
||||||
|
|
||||||
|
|
||||||
# curl -X POST -H "Content-Type: application/json" -d @webapp/backend/pkg/web/testdata/register-devices-req.json localhost:8080/api/devices/register
|
# curl -X POST -H "Content-Type: application/json" -d @webapp/backend/pkg/web/testdata/register-devices-req.json localhost:8080/api/devices/register
|
||||||
@@ -322,7 +322,7 @@ docker run -p 8086:8086 -d --rm \
|
|||||||
-e DOCKER_INFLUXDB_INIT_ORG=scrutiny \
|
-e DOCKER_INFLUXDB_INIT_ORG=scrutiny \
|
||||||
-e DOCKER_INFLUXDB_INIT_BUCKET=metrics \
|
-e DOCKER_INFLUXDB_INIT_BUCKET=metrics \
|
||||||
-e DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token \
|
-e DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token \
|
||||||
influxdb:2.2
|
influxdb:2.8
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ other Docker images:
|
|||||||
- `ghcr.io/analogj/scrutiny:latest-collector` - Contains the Scrutiny data collector, `smartctl` binary and cron-like
|
- `ghcr.io/analogj/scrutiny:latest-collector` - Contains the Scrutiny data collector, `smartctl` binary and cron-like
|
||||||
scheduler. You can run one collector on each server.
|
scheduler. You can run one collector on each server.
|
||||||
- `ghcr.io/analogj/scrutiny:latest-web` - Contains the Web UI and API. Only one container necessary
|
- `ghcr.io/analogj/scrutiny:latest-web` - Contains the Web UI and API. Only one container necessary
|
||||||
- `influxdb:2.2` - InfluxDB image, used by the Web container to persist SMART data. Only one container necessary
|
- `influxdb:2.8` - InfluxDB image, used by the Web container to persist SMART data. Only one container necessary
|
||||||
See [docs/TROUBLESHOOTING_INFLUXDB.md](./docs/TROUBLESHOOTING_INFLUXDB.md)
|
See [docs/TROUBLESHOOTING_INFLUXDB.md](./docs/TROUBLESHOOTING_INFLUXDB.md)
|
||||||
|
|
||||||
> See [docker/example.hubspoke.docker-compose.yml](https://github.com/AnalogJ/scrutiny/blob/master/docker/example.hubspoke.docker-compose.yml) for a docker-compose file.
|
> See [docker/example.hubspoke.docker-compose.yml](https://github.com/AnalogJ/scrutiny/blob/master/docker/example.hubspoke.docker-compose.yml) for a docker-compose file.
|
||||||
@@ -111,7 +111,7 @@ other Docker images:
|
|||||||
docker run -p 8086:8086 --restart unless-stopped \
|
docker run -p 8086:8086 --restart unless-stopped \
|
||||||
-v `pwd`/influxdb2:/var/lib/influxdb2 \
|
-v `pwd`/influxdb2:/var/lib/influxdb2 \
|
||||||
--name scrutiny-influxdb \
|
--name scrutiny-influxdb \
|
||||||
influxdb:2.2
|
influxdb:2.8
|
||||||
|
|
||||||
docker run -p 8080:8080 --restart unless-stopped \
|
docker run -p 8080:8080 --restart unless-stopped \
|
||||||
-v `pwd`/scrutiny:/opt/scrutiny/config \
|
-v `pwd`/scrutiny:/opt/scrutiny/config \
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ version: '2.4'
|
|||||||
services:
|
services:
|
||||||
influxdb:
|
influxdb:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: influxdb:2.2
|
image: influxdb:2.8
|
||||||
ports:
|
ports:
|
||||||
- '8086:8086'
|
- '8086:8086'
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ Scrutiny is made up of three components: an influxdb Database, a collector and a
|
|||||||
|
|
||||||
## InfluxDB
|
## InfluxDB
|
||||||
|
|
||||||
Please follow the official InfluxDB installation guide. Note, you'll need to install v2.2.0+.
|
Please follow the official InfluxDB installation guide. Note, you'll need to install v2.8.0+.
|
||||||
|
|
||||||
https://docs.influxdata.com/influxdb/v2.2/install/
|
https://docs.influxdata.com/influxdb/v2/install/
|
||||||
|
|
||||||
## Webapp/API
|
## Webapp/API
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ Description=influxdb
|
|||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
ContainerName=influxdb
|
ContainerName=influxdb
|
||||||
Image=docker.io/library/influxdb:2.2
|
Image=docker.io/library/influxdb:2.8
|
||||||
AutoUpdate=registry
|
AutoUpdate=registry
|
||||||
Timezone=local
|
Timezone=local
|
||||||
## not strictly necessary, but keeps file permission sane for influxdb
|
## not strictly necessary, but keeps file permission sane for influxdb
|
||||||
|
|||||||
@@ -41,14 +41,14 @@ The growth rate is pretty unintuitive -- see https://github.com/AnalogJ/scrutiny
|
|||||||
|
|
||||||
InfluxDB is a required dependency for Scrutiny v0.4.0+.
|
InfluxDB is a required dependency for Scrutiny v0.4.0+.
|
||||||
|
|
||||||
https://docs.influxdata.com/influxdb/v2.2/install/
|
https://docs.influxdata.com/influxdb/v2/install/
|
||||||
|
|
||||||
## Persistence
|
## Persistence
|
||||||
|
|
||||||
To ensure that all data is correctly stored, you must also persist the InfluxDB database directory
|
To ensure that all data is correctly stored, you must also persist the InfluxDB database directory
|
||||||
|
|
||||||
- If you're using the Official Scrutiny Omnibus image (`ghcr.io/analogj/scrutiny:master-omnibus`), the path is `/opt/scrutiny/influxdb`
|
- If you're using the Official Scrutiny Omnibus image (`ghcr.io/analogj/scrutiny:master-omnibus`), the path is `/opt/scrutiny/influxdb`
|
||||||
- If you're deploying in Hub/Spoke mode with the InfluxDB maintained image (`influxdb:2.2`), the path is `/var/lib/influxdb2`
|
- If you're deploying in Hub/Spoke mode with the InfluxDB maintained image (`influxdb:2.8`), the path is `/var/lib/influxdb2`
|
||||||
|
|
||||||
If you attempt to restart Scrutiny but you forgot to persist the InfluxDB directory, you will get an error message like follows:
|
If you attempt to restart Scrutiny but you forgot to persist the InfluxDB directory, you will get an error message like follows:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user