mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-10-29 17:50:23 +00:00
pkg_resources deprication
This commit is contained in:
@@ -112,7 +112,7 @@ The default configuration file comes with a sample configuration, making it easy
|
||||
|
||||
Most options are easy to understand at first glance, and some are described in more details [later](https://github.com/akpw/mktxp#advanced-features).
|
||||
|
||||
💡 To automatically migrate from the older `mktxp.conf` format in the existing installs, just set `compact_default_conf_values = True` in [the mktxp system config](https://github.com/akpw/mktxp#mktxp-system-configuration)
|
||||
<sup>💡</sup> To automatically migrate from the older `mktxp.conf` format in the existing installs, just set `compact_default_conf_values = True` in [the mktxp system config](https://github.com/akpw/mktxp#mktxp-system-configuration)
|
||||
|
||||
#### Local install
|
||||
If you have a local MKTXP installation, you can edit the configuration file with your default system editor directly from mktxp:
|
||||
@@ -143,7 +143,7 @@ docker run -v "$(pwd)/mktxp:/home/mktxp/mktxp/" -p 49090:49090 -it --rm ghcr.io/
|
||||
#### MKTXP stack install
|
||||
[MKTXP Stack Getting Started](https://github.com/akpw/mktxp-stack#install--getting-started) provides similar instructions around editing the mktxp.conf file and, if needed, adding a dedicated API user to your Mikrotik RouterOS devices as mentioned below.
|
||||
|
||||
💡 *In the case of usage within a [Docker Swarm](https://docs.docker.com/engine/swarm/), please do make sure to have all settings explicitly set in both the `mktxp.conf` and `_mktxp.conf` files. Not doing this may cause [issues](https://github.com/akpw/mktxp/issues/55#issuecomment-1346693843) regarding a `read-only` filesystem.*
|
||||
<sup>💡</sup> *In the case of usage within a [Docker Swarm](https://docs.docker.com/engine/swarm/), please do make sure to have all settings explicitly set in both the `mktxp.conf` and `_mktxp.conf` files. Not doing this may cause [issues](https://github.com/akpw/mktxp/issues/55#issuecomment-1346693843) regarding a `read-only` filesystem.*
|
||||
|
||||
## Mikrotik Device Config
|
||||
For the purpose of RouterOS device monitoring, it's best to create a dedicated user with minimal required permissions. \
|
||||
@@ -241,7 +241,7 @@ mktxp edit -i
|
||||
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)
|
||||
|
||||
compact_default_conf_values = True # Compact mktxp.conf, so only specific values are kept on the individual routers' level
|
||||
compact_default_conf_values = False # Compact mktxp.conf, so only specific values are kept on the individual routers' level
|
||||
```
|
||||
<sup>💡</sup> *When changing the default mktxp port for [docker image installs](https://github.com/akpw/mktxp#docker-image-install), you'll need to adjust the `docker run ... -p 49090:49090 ...` command to reflect the new port*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user