mirror of
https://github.com/kemko/keenetic-grafana-monitoring.git
synced 2026-01-01 07:35:42 +03:00
Update README.md
This commit is contained in:
committed by
Vitaliy Skrypnyk
parent
3f3f37c6e6
commit
9435104f14
3
.vscode/launch.json
vendored
3
.vscode/launch.json
vendored
@@ -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": [
|
||||
{
|
||||
|
||||
38
README.md
38
README.md
@@ -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 .`
|
||||
|
||||
@@ -13,4 +13,4 @@ skip_auth=false
|
||||
login=<user>
|
||||
password=<pass>
|
||||
[collector]
|
||||
interval_sec=30
|
||||
interval_sec=30
|
||||
|
||||
Reference in New Issue
Block a user