mirror of
https://github.com/kemko/keenetic-grafana-monitoring.git
synced 2026-01-01 15:45:43 +03:00
Using admin api, instead open port (#1)
* influxdb2 integration * using python alpine base image * add authorization, refactoring config * logging instead print, keenetic api exception handling when try to collect metrics, a little pep8
This commit is contained in:
committed by
GitHub
parent
7661b5819d
commit
16a37bf0d9
13
config/config.ini.sample
Normal file
13
config/config.ini.sample
Normal file
@@ -0,0 +1,13 @@
|
||||
[influxdb]
|
||||
host=<HOST>
|
||||
port=80
|
||||
username=admin
|
||||
password=<INFLUX_PASS>
|
||||
db=keenetic
|
||||
[keenetic]
|
||||
admin_endpoint=http://192.168.1.1:80
|
||||
skip_auth=false
|
||||
login=admin
|
||||
password=<KEENETIC_PASS>
|
||||
[collector]
|
||||
interval_sec=30
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"influxdb": {
|
||||
"host": "<HOST>",
|
||||
"port": 80,
|
||||
"username": "admin",
|
||||
"password": "<PASS>",
|
||||
"db": "keenetic"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
{
|
||||
"endpoint" : "http://192.168.1.1:79/rci",
|
||||
"interval_sec" : 30,
|
||||
"metrics" : [
|
||||
{
|
||||
"command": "processes",
|
||||
|
||||
Reference in New Issue
Block a user