monit-docker 1.3.0¶
The direct commands now read their own optional sections in monit-docker.yml.
For example, stats: {rsc: [cpu_percent, mem_usage], output: json} selects two
measurements. Running monit-docker stats --output text changes the output
format for one invocation.
Upgrade from 1.2.0¶
Pin the agent and UI images to 1.3.0, or install the package with
python -m pip install --upgrade 'monit-docker==1.3.0'. Existing command lines
work with their previous defaults. Upgrade before adding the new YAML sections.
Keep existing state, audit files and secrets. For a rollback to 1.2.0, restore
the previous configuration and command line before starting the older agent.
Each of
serve,cron,statsandmonitreads only its own section. An explicit flag overrides that field. Repeated--rscor--cmdflags replace the corresponding YAML list.monit --rscselects observation even if YAML configures an action. Use--dry-runto preview rules for one invocation.To protect
GETandHEAD /v1/status, setserve.status_token_fileor pass--status-token-file FILE. Give clients a dedicated bearer token. When using the dashboard, configure its authenticated proxy to inject this token only on the upstream status route. Prometheus uses its own metrics credential.
See the configuration reference and serve guide.