[RB5009] enabled = True# turns metrics collection for this RouterOS device on / off hostname = 10.0.0.1# RouterOS IP address port = 41239# RouterOS API / API-SSL service port username = mktxp1 # RouterOS user, needs to have 'read' and 'api' permissions password = wozhendebuai
use_ssl = False# enables connection via API-SSL servis no_ssl_certificate = True# enables API_SSL connect without router SSL certificate ssl_certificate_verify = False# turns SSL certificate verification on / off
## Copyright (c) 2020 Arseniy Kuznetsov ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License ## as published by the Free Software Foundation; either version 2 ## of the License, or (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details.
bandwidth = False# Turns metrics bandwidth metrics collection on / off bandwidth_test_interval = 600# Interval for colllecting bandwidth metrics minimal_collect_interval = 5# Minimal metric collection interval
verbose_mode = True# Set it on for troubleshooting
fetch_routers_in_parallel = False# Set to True if you want to fetch multiple routers parallel max_worker_threads = 5# Max number of worker threads that can fetch routers (parallel fetch only) max_scrape_duration = 10# Max duration of individual routers' metrics collection (parallel fetch only) total_max_scrape_duration = 30# Max overall duration of all metrics collection (parallel fetch only)
1
docker run -d --name=mktxp -v "$(pwd)/mktxp/:/home/mktxp/mktxp/" -p 49090:49090 ghcr.io/akpw/mktxp:latest
安装Prometheus
1 2
mkdir prometheus vim prometheus/prometheus.yml
⚠️记得修改下方10.0.0.188为你自己的ip
1 2 3 4 5 6 7 8 9
global: scrape_interval:15s# Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interval:15s# Evaluate rules every 15 seconds. The default is every 1 minute. # scrape_timeout is set to the global default (10s).