Update README.md

This commit is contained in:
Vitaliy Skypnyk
2021-11-10 21:50:33 +00:00
committed by Vitaliy Skrypnyk
parent 3f3f37c6e6
commit 9435104f14
3 changed files with 20 additions and 23 deletions

3
.vscode/launch.json vendored
View File

@@ -1,7 +1,4 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{

View File

@@ -20,7 +20,7 @@ May work on other Keenetic routers
# Supported InfluxDB version
InfluxDB 2.x (recomended) and InfluxDB 1.8+
InfluxDB 2.x (recommended) and InfluxDB 1.8+
# Preparation
@@ -72,24 +72,7 @@ skip_auth=true
There are two options, you can run collector directly on the router or in Docker on separate host.
## Run on router
* Copy repository content to your router `/opt/home/keenetic-grafana-monitoring`
* Install Python `opkg install python3 python3-pip`
* Install dependencies ` pip install -r requirements.txt`
* Create script for autorun `/opt/etc/init.d/S99keeneticgrafana`
```$bash
#!/bin/sh
[ "$1" != "start" ] && exit 0
nohup python /opt/home/keenetic-grafana-monitoring/keentic_influxdb_exporter.py >/dev/null 2>&1 &
```
* Run `/opt/etc/init.d/S99keeneticgrafana start`
## Run on Docker
## Run in Docker on seprate host (recommended)
```
---
@@ -126,6 +109,23 @@ services:
- DOCKER_INFLUXDB_INIT_PASSWORD=password
```
## Run on router
* Copy repository content to your router `/opt/home/keenetic-grafana-monitoring`
* Install Python `opkg install python3 python3-pip`
* Install dependencies ` pip install -r requirements.txt`
* Create script for autorun `/opt/etc/init.d/S99keeneticgrafana`
```$bash
#!/bin/sh
[ "$1" != "start" ] && exit 0
nohup python /opt/home/keenetic-grafana-monitoring/keentic_influxdb_exporter.py >/dev/null 2>&1 &
```
* Run `/opt/etc/init.d/S99keeneticgrafana start`
# Build Docker image
`docker build -t keenetic-grafana-monitoring .`

View File

@@ -13,4 +13,4 @@ skip_auth=false
login=<user>
password=<pass>
[collector]
interval_sec=30
interval_sec=30