monit-docker 1.2.0__tar.gz → 1.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {monit_docker-1.2.0/monit_docker.egg-info → monit_docker-1.3.1}/PKG-INFO +10 -6
- {monit_docker-1.2.0 → monit_docker-1.3.1}/README.md +9 -5
- monit_docker-1.3.1/RELEASE +1 -0
- monit_docker-1.3.1/VERSION +1 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/compose-quickstart-fr.md +77 -9
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/compose-quickstart.md +28 -10
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/compose.md +3 -2
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/config-cli-contract.md +16 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/cron.md +17 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/http-api-contract.md +2 -2
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/index.rst +2 -0
- monit_docker-1.3.1/docs/release-1.3.0.md +26 -0
- monit_docker-1.3.1/docs/release-1.3.1.md +17 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/roadmap.md +10 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/serve.md +59 -1
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/simple.md +18 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/tutorial-memory.md +5 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/compose.yaml +1 -1
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/ui/compose.yaml +2 -2
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/__init__.py +1 -1
- monit_docker-1.3.1/monit_docker/adapters/command_config.py +56 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/configuration.py +2 -1
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/http.py +4 -3
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/http_routes.py +1 -1
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/http_security.py +7 -2
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/validation.py +15 -3
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/cli.py +56 -9
- {monit_docker-1.2.0 → monit_docker-1.3.1/monit_docker.egg-info}/PKG-INFO +10 -6
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker.egg-info/SOURCES.txt +5 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/setup.yml +2 -2
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_api_contract.py +20 -0
- monit_docker-1.3.1/tests/test_direct_command_config.py +58 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_http_token_separation.py +7 -4
- monit_docker-1.3.1/tests/test_serve_config.py +83 -0
- monit_docker-1.2.0/RELEASE +0 -1
- monit_docker-1.2.0/VERSION +0 -1
- {monit_docker-1.2.0 → monit_docker-1.3.1}/LICENSE +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/MANIFEST.in +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/bin/monit-docker +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/access-checks.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/alerts.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/architecture-review-2026-09-27.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/architecture.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/audit-migration.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/audit.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/beta-decisions.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/check-config.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/configuration-validation.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/contributing.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/contributors.rst +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/deprecation-policy.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/dwho-http-notifications.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/filesystems.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/grafana.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/healthchecks.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/images/grafana-cpu.png +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/images/grafana-network.png +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/images/grafana-overview.png +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/images/terminal-containers.png +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/images/terminal-details.png +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/images/terminal-journal.png +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/images/textual-containers.png +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/images/textual-journal.png +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/images/textual-unavailable.png +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/installation-upgrades.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/journal-compatibility.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/maintenance.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/metrics.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/notifications.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/performance-resilience.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/redis-notifications.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/release-1.0.0.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/release-1.0.1.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/release-1.1.0.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/release-1.1.1.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/release-1.1.2.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/release-1.1.3.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/release-1.1.4.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/release-1.2.0.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/restart-limit.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/runtime-checks.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/scenarios.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/shared-terminal.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/supported-environments.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/terminal.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/textual-review.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/textual.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/trigger-delay.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/troubleshooting.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/docs/ui.md +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/grafana/monit-docker.json +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/alertmanager.email-slack.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/alertmanager.email.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/alertmanager.redis.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/alertmanager.slack.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/alerts.runtime.test.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/alerts.runtime.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/alerts.test.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/alerts.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/compose.audit.yaml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/compose.notifications.yaml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/compose.redis.yaml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/dwho-http/http.json +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/dwho-http/http.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/dwho-http/payload.json +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/dwho-http/send.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/grafana/dashboards.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/grafana/datasources.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/prometheus-notifications.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/prometheus.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/redis-webhook/Dockerfile +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/redis-webhook/bridge.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/redis-webhook/requirements.txt +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/monitoring/start.sh +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/scenarios.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/socket-proxy/Dockerfile +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/tutorial-memory/compose.yaml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/tutorial-memory/monit-docker.yml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/tutorial-memory/worker.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/ui/compose.actions.yaml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/ui/compose.journal.yaml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/examples/ui/prepare.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/__main__.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/__init__.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/access.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/audit_http.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/docker.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/events.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/filesystems.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/rules.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/scenarios.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/selection.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/state.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/stats.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/syntax.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/adapters/validation_rules.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/application.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/application_state.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/audit.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/audit_forward.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/audit_migrate.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/audit_query.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/cli_audit.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/composition.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/core/__init__.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/core/engine.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/core/manual.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/core/metrics.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/core/policy.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/core/rules.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/domain/__init__.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/domain/errors.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/domain/filesystems.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/domain/identifiers.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/domain/maintenance.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/domain/models.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/domain/rules.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/domain/runtime.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/job.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/manual_actions.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/notification_audit.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/observation.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/outputs/__init__.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/outputs/formatting.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/outputs/prometheus.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/service.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/textual_demo.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/textual_tui.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker/tui.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker.egg-info/dependency_links.txt +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker.egg-info/requires.txt +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/monit_docker.egg-info/top_level.txt +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/pyproject.toml +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/requirements.txt +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/scripts/capture_textual.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/setup.cfg +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/setup.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_access.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_access_docker.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_adapters.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_application_architecture.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_audit.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_audit_migrate.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_audit_query.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_audit_stream.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_beta_decisions.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_check_config.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_cli_contract.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_configuration_schema.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_core.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_cron.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_docker_integration.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_engine.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_filesystem_mode.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_filesystems.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_health.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_http_service_boundaries.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_httpdis_transport.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_journal_compatibility.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_maintenance.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_manual_actions.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_monit_docker.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_packaging.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_resilience.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_restart_limit.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_rule_literals.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_runtime_checks.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_runtime_docker.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_scenarios.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_service.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_stats_timeouts.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_stats_transport.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_terminal_docker.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_terminal_signals.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_trigger_delay.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/tests/test_tui.py +0 -0
- {monit_docker-1.2.0 → monit_docker-1.3.1}/textual_tests/test_textual_tui.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: monit-docker
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: monit-docker
|
|
5
5
|
Home-page: https://github.com/decryptus/monit-docker
|
|
6
6
|
Author: Adrien Delle Cave
|
|
@@ -49,8 +49,8 @@ Dynamic: summary
|
|
|
49
49
|
|
|
50
50
|
# monit-docker project
|
|
51
51
|
|
|
52
|
-
**Current package and image version: [1.
|
|
53
|
-
— [Release notes and upgrade guidance](docs/release-1.
|
|
52
|
+
**Current package and image version: [1.3.1](https://github.com/decryptus/monit-docker/tree/v1.3.1)**
|
|
53
|
+
— [Release notes and upgrade guidance](docs/release-1.3.1.md).
|
|
54
54
|
|
|
55
55
|
<p align="center">
|
|
56
56
|
<img src="https://raw.githubusercontent.com/decryptus/monit-docker/v0.0.63/ui/branding/monit-docker-logo.png" alt="monit-docker logo" width="640">
|
|
@@ -66,7 +66,7 @@ Dynamic: summary
|
|
|
66
66
|
[Documentation (EN)](https://www.monit-docker.com/docs/en/) ·
|
|
67
67
|
[Live demo](https://demo.monit-docker.com/) ·
|
|
68
68
|
[Release roadmap](docs/roadmap.md) ·
|
|
69
|
-
[1.
|
|
69
|
+
[1.3.1 release notes](docs/release-1.3.1.md) ·
|
|
70
70
|
[Logos and icons](ui/branding/README.md)
|
|
71
71
|
|
|
72
72
|
monit-docker is a free, open-source tool for checking Docker containers and
|
|
@@ -77,7 +77,7 @@ container or reloading PHP-FPM when memory usage is high.
|
|
|
77
77
|
Compose v2 and curl, run:
|
|
78
78
|
|
|
79
79
|
```sh
|
|
80
|
-
git clone --branch v1.
|
|
80
|
+
git clone --branch v1.3.1 --depth 1 https://github.com/decryptus/monit-docker.git
|
|
81
81
|
cd monit-docker
|
|
82
82
|
./install.sh
|
|
83
83
|
```
|
|
@@ -168,7 +168,7 @@ the release workflow does not update `latest`.
|
|
|
168
168
|
|
|
169
169
|
| Installation | Files | What runs |
|
|
170
170
|
| --- | --- | --- |
|
|
171
|
-
| Minimal | `docker-compose.yml` | Agent
|
|
171
|
+
| Minimal | `docker-compose.yml` | Agent and filtered Docker socket proxy, observation by default |
|
|
172
172
|
| With web UI | Add `docker-compose.ui.yml` | Same agent plus authenticated HTTPS UI |
|
|
173
173
|
| Prometheus and Grafana | `examples/monitoring/compose.yaml` | Separate optional history and dashboards stack |
|
|
174
174
|
|
|
@@ -177,6 +177,10 @@ for prerequisites, the UI, upgrades and stopping the stack. The
|
|
|
177
177
|
[reproducible memory tutorial](docs/tutorial-memory.md) adds a bounded test worker,
|
|
178
178
|
then explicitly enables one automatic restart. The default installation has no action rules.
|
|
179
179
|
|
|
180
|
+
The current Compose checkout builds the socket proxy locally and runs the published
|
|
181
|
+
1.3.1 agent and UI images. Before switching an existing direct-socket agent,
|
|
182
|
+
follow the [socket migration](docs/compose-quickstart.md#migrate-an-existing-agent).
|
|
183
|
+
|
|
180
184
|
**Existing root Compose users:** the old cron/PHP-FPM example is replaced by
|
|
181
185
|
observation-only `serve`. Preserve and review your old configuration before
|
|
182
186
|
upgrading; the old `MONIT_DOCKER_CRONS` jobs do not run in this new entry point.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# monit-docker project
|
|
2
2
|
|
|
3
|
-
**Current package and image version: [1.
|
|
4
|
-
— [Release notes and upgrade guidance](docs/release-1.
|
|
3
|
+
**Current package and image version: [1.3.1](https://github.com/decryptus/monit-docker/tree/v1.3.1)**
|
|
4
|
+
— [Release notes and upgrade guidance](docs/release-1.3.1.md).
|
|
5
5
|
|
|
6
6
|
<p align="center">
|
|
7
7
|
<img src="https://raw.githubusercontent.com/decryptus/monit-docker/v0.0.63/ui/branding/monit-docker-logo.png" alt="monit-docker logo" width="640">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
[Documentation (EN)](https://www.monit-docker.com/docs/en/) ·
|
|
18
18
|
[Live demo](https://demo.monit-docker.com/) ·
|
|
19
19
|
[Release roadmap](docs/roadmap.md) ·
|
|
20
|
-
[1.
|
|
20
|
+
[1.3.1 release notes](docs/release-1.3.1.md) ·
|
|
21
21
|
[Logos and icons](ui/branding/README.md)
|
|
22
22
|
|
|
23
23
|
monit-docker is a free, open-source tool for checking Docker containers and
|
|
@@ -28,7 +28,7 @@ container or reloading PHP-FPM when memory usage is high.
|
|
|
28
28
|
Compose v2 and curl, run:
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
|
-
git clone --branch v1.
|
|
31
|
+
git clone --branch v1.3.1 --depth 1 https://github.com/decryptus/monit-docker.git
|
|
32
32
|
cd monit-docker
|
|
33
33
|
./install.sh
|
|
34
34
|
```
|
|
@@ -119,7 +119,7 @@ the release workflow does not update `latest`.
|
|
|
119
119
|
|
|
120
120
|
| Installation | Files | What runs |
|
|
121
121
|
| --- | --- | --- |
|
|
122
|
-
| Minimal | `docker-compose.yml` | Agent
|
|
122
|
+
| Minimal | `docker-compose.yml` | Agent and filtered Docker socket proxy, observation by default |
|
|
123
123
|
| With web UI | Add `docker-compose.ui.yml` | Same agent plus authenticated HTTPS UI |
|
|
124
124
|
| Prometheus and Grafana | `examples/monitoring/compose.yaml` | Separate optional history and dashboards stack |
|
|
125
125
|
|
|
@@ -128,6 +128,10 @@ for prerequisites, the UI, upgrades and stopping the stack. The
|
|
|
128
128
|
[reproducible memory tutorial](docs/tutorial-memory.md) adds a bounded test worker,
|
|
129
129
|
then explicitly enables one automatic restart. The default installation has no action rules.
|
|
130
130
|
|
|
131
|
+
The current Compose checkout builds the socket proxy locally and runs the published
|
|
132
|
+
1.3.1 agent and UI images. Before switching an existing direct-socket agent,
|
|
133
|
+
follow the [socket migration](docs/compose-quickstart.md#migrate-an-existing-agent).
|
|
134
|
+
|
|
131
135
|
**Existing root Compose users:** the old cron/PHP-FPM example is replaced by
|
|
132
136
|
observation-only `serve`. Preserve and review your old configuration before
|
|
133
137
|
upgrading; the old `MONIT_DOCKER_CRONS` jobs do not run in this new entry point.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.3.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.3.1
|
|
@@ -11,13 +11,15 @@ automatique des conteneurs surveillés.
|
|
|
11
11
|
| Agent et interface web | Base et `docker-compose.ui.yml` | `https://localhost:8443` |
|
|
12
12
|
| Historique et graphiques | `examples/monitoring/compose.yaml` | Grafana sur le port 3000 |
|
|
13
13
|
|
|
14
|
-
## Socket Docker filtré
|
|
14
|
+
## Socket Docker filtré par défaut
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
L’installateur détecte le groupe du socket et construit le proxy. Pour utiliser
|
|
17
|
+
Compose manuellement, exportez le groupe dans chaque nouveau shell, ou inscrivez
|
|
18
|
+
sa valeur numérique dans le fichier local `.env` du projet. Depuis la racine :
|
|
17
19
|
|
|
18
20
|
```sh
|
|
19
21
|
export DOCKER_SOCKET_GID=$(stat -c %g "${DOCKER_SOCKET_PATH:-/var/run/docker.sock}")
|
|
20
|
-
docker compose
|
|
22
|
+
docker compose up -d --build --wait
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
Seul le proxy monte le socket de l’hôte. L’agent le joint sur un réseau privé et
|
|
@@ -42,7 +44,27 @@ Choisissez uniquement des conteneurs de confiance. Une commande dans un
|
|
|
42
44
|
conteneur privilégié ou disposant du socket Docker ou du système de fichiers
|
|
43
45
|
hôte peut donner accès à l’hôte. Le proxy lui-même conserve le vrai socket.
|
|
44
46
|
Les règles de supervision et les jetons pour les actions manuelles se
|
|
45
|
-
configurent séparément.
|
|
47
|
+
configurent séparément. L’ancien fichier
|
|
48
|
+
`docker-compose.socket-proxy.yml` reste accepté pour les commandes existantes.
|
|
49
|
+
|
|
50
|
+
## Migrer un agent existant
|
|
51
|
+
|
|
52
|
+
Conservez votre installation actuelle jusqu’à la migration. L’installateur
|
|
53
|
+
s’arrête s’il détecte un agent existant qui utilise directement le socket.
|
|
54
|
+
|
|
55
|
+
1. Sauvegardez les fichiers Compose, la configuration et l’état. Gardez le nom
|
|
56
|
+
de projet et son volume. Relevez les règles et sondes qui nécessitent un exec
|
|
57
|
+
ou une action sur un conteneur.
|
|
58
|
+
2. Renseignez le GID du socket et les identifiants complets des cibles comme
|
|
59
|
+
indiqué plus haut. Conservez ces valeurs pour les prochains appels à Compose.
|
|
60
|
+
3. Dans le nouveau dépôt, reprenez le nom de projet et vos fichiers de surcharge.
|
|
61
|
+
Vérifiez avec `docker compose config` que seul le proxy monte le socket.
|
|
62
|
+
Retirez de l’agent tout ancien montage du socket et toute surcharge de `DOCKER_HOST`.
|
|
63
|
+
4. Appliquez la configuration vérifiée avec `docker compose up -d --build --wait`
|
|
64
|
+
et les fichiers choisis. Vérifiez `/readyz`, puis testez vos sondes et actions
|
|
65
|
+
sur une cible jetable autorisée. Pour revenir en arrière, reprenez les anciens
|
|
66
|
+
fichiers et le même nom de projet. Utilisez `up -d --remove-orphans` après
|
|
67
|
+
vérification des services qui seront retirés. Conservez le volume d’état.
|
|
46
68
|
|
|
47
69
|
## Installation guidée
|
|
48
70
|
|
|
@@ -50,7 +72,7 @@ Sur Linux amd64, installer Git, Docker Engine, son plugin Compose v2 avec
|
|
|
50
72
|
`up --wait` et curl. Pour le tableau de bord, prévoir Python 3 et OpenSSL.
|
|
51
73
|
|
|
52
74
|
```sh
|
|
53
|
-
git clone --branch v1.
|
|
75
|
+
git clone --branch v1.3.1 --depth 1 https://github.com/decryptus/monit-docker.git
|
|
54
76
|
cd monit-docker
|
|
55
77
|
./install.sh
|
|
56
78
|
```
|
|
@@ -97,9 +119,7 @@ La collecte tourne toutes les 30 secondes après la fin du cycle précédent.
|
|
|
97
119
|
En cas d’erreur, consulter `docker compose ps` et
|
|
98
120
|
`docker compose logs --tail=100 monit-docker`.
|
|
99
121
|
|
|
100
|
-
L’API
|
|
101
|
-
Docker, mais ce socket permet de contrôler Docker même si le montage est marqué
|
|
102
|
-
`read_only`. L’observation seule vient de l’absence de règles, pas du montage.
|
|
122
|
+
L’API de l’agent écoute sur la boucle locale. Seul le proxy monte le socket Docker.
|
|
103
123
|
|
|
104
124
|
## Ajouter l’interface web
|
|
105
125
|
|
|
@@ -137,7 +157,7 @@ Définir `MONIT_DOCKER_PORT`, `UI_PORT` ou `DOCKER_SOCKET_PATH` dans le shell av
|
|
|
137
157
|
Compose si nécessaire. `UI_BIND` vaut `127.0.0.1` par défaut. Garder le même nom
|
|
138
158
|
de projet et le même répertoire pour réutiliser le volume.
|
|
139
159
|
|
|
140
|
-
Les images de l’agent et de l’UI sont fixées à **1.
|
|
160
|
+
Les images de l’agent et de l’UI sont fixées à **1.3.1**. Pour une évolution,
|
|
141
161
|
choisir des versions correspondantes, préserver la configuration et les données,
|
|
142
162
|
puis utiliser `pull` et `up -d --wait` avec la même liste de fichiers. Un simple
|
|
143
163
|
`pull` ne remplace pas les conteneurs en cours d’exécution.
|
|
@@ -154,6 +174,34 @@ nom de projet d’origine. Pour conserver des jobs, reprendre explicitement leur
|
|
|
154
174
|
cibles et règles selon le [guide cron](cron.md), avec un état persistant et une
|
|
155
175
|
simulation préalable. Aucune conversion automatique des règles n’est effectuée.
|
|
156
176
|
|
|
177
|
+
À partir de la version 1.3.0, la commande `monit-docker serve`
|
|
178
|
+
peut aussi lire ses réglages dans `monit-docker.yml`. Exemple :
|
|
179
|
+
|
|
180
|
+
```yaml
|
|
181
|
+
serve:
|
|
182
|
+
port: 9810
|
|
183
|
+
interval: 60
|
|
184
|
+
rsc: [status, health]
|
|
185
|
+
status_token_file: /run/secrets/status
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Une option explicite en ligne de commande est prioritaire. Avec cet exemple,
|
|
189
|
+
`serve --port 9808 --rsc pid` écoute sur 9808, collecte uniquement le PID
|
|
190
|
+
et conserve l’intervalle et le chemin du jeton définis dans le fichier.
|
|
191
|
+
Les listes `rsc` et `cmd` sont remplacées en entier. Pour les noms de clés,
|
|
192
|
+
remplacer les tirets des options longues par des traits de soulignement.
|
|
193
|
+
La simulation ponctuelle utilise toujours `--dry-run`.
|
|
194
|
+
Pour désactiver temporairement un booléen activé dans `serve:`, utilisez
|
|
195
|
+
`--no-allow-actions`, `--no-allow-maintenance` ou `--no-trust-proxy-user`.
|
|
196
|
+
|
|
197
|
+
Pour protéger la lecture de `/v1/status`, montez un fichier secret dans
|
|
198
|
+
l’agent et ajoutez `--status-token-file /run/secrets/status` après `serve`.
|
|
199
|
+
Le fichier contient 64 caractères hexadécimaux minuscules. Utilisez un secret
|
|
200
|
+
distinct pour chaque usage. Les clients envoient le jeton dans l’en-tête Bearer
|
|
201
|
+
de la requête. Si vous utilisez le tableau de bord, configurez son proxy pour
|
|
202
|
+
ajouter cet en-tête uniquement sur la route de statut. Voir le [guide de
|
|
203
|
+
l’agent](serve.md).
|
|
204
|
+
|
|
157
205
|
## Continuer avec une démonstration
|
|
158
206
|
|
|
159
207
|
Le [tutoriel mémoire](tutorial-memory.md) ajoute un conteneur jetable et permet
|
|
@@ -163,3 +211,23 @@ conteneur et la sélection exacte évitent de prendre un service existant comme
|
|
|
163
211
|
La [pile Prometheus et Grafana](compose.md) reste une installation distincte pour
|
|
164
212
|
l’historique. Arrêter la pile minimale ou modifier ses ports avant de la lancer.
|
|
165
213
|
Les notifications demandent une [configuration supplémentaire](notifications.md).
|
|
214
|
+
|
|
215
|
+
## Réglages de cron, stats et monit
|
|
216
|
+
|
|
217
|
+
La version 1.3.0 permet de placer les valeurs habituelles dans
|
|
218
|
+
trois sections de `monit-docker.yml`. Exemple pour une lecture de métriques :
|
|
219
|
+
|
|
220
|
+
```yaml
|
|
221
|
+
stats:
|
|
222
|
+
rsc: [cpu_percent, mem_usage]
|
|
223
|
+
output: json
|
|
224
|
+
monit:
|
|
225
|
+
rsc: [status]
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
`monit-docker stats --output text` utilise les ressources du fichier et affiche
|
|
229
|
+
du texte. Avec `monit --rsc status`, seules les mesures demandées sont lues,
|
|
230
|
+
même si le YAML définit une commande. Pour programmer une règle, renseignez
|
|
231
|
+
`cron.cmd` et `cron.state_file`, puis testez avec
|
|
232
|
+
`monit-docker --name web cron --dry-run`. Le [guide cron](cron.md) contient
|
|
233
|
+
un exemple complet.
|
|
@@ -11,13 +11,15 @@ stack. None of these installations enables automatic container actions by defaul
|
|
|
11
11
|
| Agent and web UI | Base plus `docker-compose.ui.yml` | `https://localhost:8443` |
|
|
12
12
|
| Metrics history and dashboards | `examples/monitoring/compose.yaml` | Grafana on `http://127.0.0.1:3000` |
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## Default filtered Docker socket
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
The guided installer discovers the socket group and builds the proxy. For manual
|
|
17
|
+
Compose commands, export the group in each new shell (or set its numeric value
|
|
18
|
+
in the project’s local `.env`). From the repository root:
|
|
17
19
|
|
|
18
20
|
```sh
|
|
19
21
|
export DOCKER_SOCKET_GID=$(stat -c %g "${DOCKER_SOCKET_PATH:-/var/run/docker.sock}")
|
|
20
|
-
docker compose
|
|
22
|
+
docker compose up -d --build --wait
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
Only the proxy mounts the host socket. The agent reaches it on a private network;
|
|
@@ -39,8 +41,26 @@ Choose trusted workload containers only. An exec into a privileged container or
|
|
|
39
41
|
one with a host filesystem or Docker socket mount can grant host access. The
|
|
40
42
|
allowlist limits the Docker API available to the agent; the proxy process itself
|
|
41
43
|
holds the real socket. These settings grant transport access. Configure any
|
|
42
|
-
monitoring rules or manual action credentials separately.
|
|
43
|
-
|
|
44
|
+
monitoring rules or manual action credentials separately. The former
|
|
45
|
+
`docker-compose.socket-proxy.yml` overlay is accepted for compatibility.
|
|
46
|
+
|
|
47
|
+
## Migrate an existing agent
|
|
48
|
+
|
|
49
|
+
Keep your current checkout and Compose files until ready to switch. The guided
|
|
50
|
+
installer stops before replacing an existing direct-socket agent. To migrate:
|
|
51
|
+
|
|
52
|
+
1. Back up the current Compose files, configuration and state. Keep your project
|
|
53
|
+
name and named volume. List rules and filesystem probes that need Docker writes.
|
|
54
|
+
2. Set the socket GID and the required target IDs as described above. Keep these
|
|
55
|
+
settings in the deployment environment for subsequent Compose invocations.
|
|
56
|
+
3. From the new checkout, use the same project name and UI/config overlays.
|
|
57
|
+
Inspect `docker compose config` for inherited direct socket mounts or a
|
|
58
|
+
custom `DOCKER_HOST`. Remove those overrides so only the proxy owns the socket.
|
|
59
|
+
4. Apply the reviewed configuration with `docker compose up -d --build --wait`
|
|
60
|
+
and the chosen file list. Check `/readyz`, then verify any probes and actions
|
|
61
|
+
against a disposable authorized target. To roll back, reapply the saved
|
|
62
|
+
Compose files with the same project name and `up -d --remove-orphans` after
|
|
63
|
+
checking which services will be removed. Keep the state volume.
|
|
44
64
|
|
|
45
65
|
## Guided installation
|
|
46
66
|
|
|
@@ -48,7 +68,7 @@ On Linux amd64, install Git, Docker Engine, its Compose v2 plugin with
|
|
|
48
68
|
`up --wait` support, and curl. For the web dashboard, install Python 3 and OpenSSL.
|
|
49
69
|
|
|
50
70
|
```sh
|
|
51
|
-
git clone --branch v1.
|
|
71
|
+
git clone --branch v1.3.1 --depth 1 https://github.com/decryptus/monit-docker.git
|
|
52
72
|
cd monit-docker
|
|
53
73
|
./install.sh
|
|
54
74
|
```
|
|
@@ -101,9 +121,7 @@ docker compose logs --tail=100 monit-docker
|
|
|
101
121
|
docker compose exec monit-docker monit-docker stats --output json
|
|
102
122
|
```
|
|
103
123
|
|
|
104
|
-
Only the
|
|
105
|
-
A socket bind marked `read_only` still grants Docker API control; it is not a
|
|
106
|
-
read-only authorization boundary. Keep the daemon and the agent trusted.
|
|
124
|
+
Only the proxy receives the Docker socket. The agent API binds to host loopback.
|
|
107
125
|
|
|
108
126
|
## Add the web UI
|
|
109
127
|
|
|
@@ -147,7 +165,7 @@ host ports. The UI binds to loopback unless `UI_BIND` is explicitly changed.
|
|
|
147
165
|
Changing a host port does not change internal agent addresses. Keep the same
|
|
148
166
|
directory/project name so Compose reuses its named volume.
|
|
149
167
|
|
|
150
|
-
The examples pin agent and UI to **1.
|
|
168
|
+
The examples pin agent and UI to **1.3.1**. When updating versions, preserve your
|
|
151
169
|
configuration and state, choose matching agent/UI versions, then pull and recreate
|
|
152
170
|
the selected stack. `docker compose pull` alone does not change a running container.
|
|
153
171
|
|
|
@@ -140,7 +140,7 @@ backups; archive them separately if you rely on this history.
|
|
|
140
140
|
|
|
141
141
|
## Customize
|
|
142
142
|
|
|
143
|
-
The services are pinned to monit-docker 1.
|
|
143
|
+
The services are pinned to monit-docker 1.3.1, Prometheus 3.5.0 and Grafana 12.2.0.
|
|
144
144
|
Update versions deliberately in `examples/monitoring/compose.yaml`, then run
|
|
145
145
|
`docker compose pull` and `sh start.sh`. The repository-root `docker-compose.yml`
|
|
146
146
|
runs the minimal observation agent; use the file in `examples/monitoring` for this
|
|
@@ -172,4 +172,5 @@ authorization:
|
|
|
172
172
|
```
|
|
173
173
|
|
|
174
174
|
Use HTTPS when scraping across an untrusted network. The token only grants
|
|
175
|
-
access to metrics.
|
|
175
|
+
access to metrics. For authenticated status reads, use the independent
|
|
176
|
+
`--status-token-file` option described in [serve mode](serve.md).
|
|
@@ -40,8 +40,22 @@ is rendered once; runtime and offline checks use the same validation. See the
|
|
|
40
40
|
| `dir-groups` | `NAME: {paths: [STRING, ...], access: MAPPING}` | Nonempty absolute container paths; `access` is optional unless an access probe is requested |
|
|
41
41
|
| `conditions` | `NAME: {expr: [STRING, ...]}` | Nonempty list of conditions combined with AND |
|
|
42
42
|
| `commands` | `NAME: {exec: [ACTION, ...]}` | Nonempty ordered action sequence |
|
|
43
|
+
| `stats` | Mapping | `rsc` (ordered list), `output` (`text` or `json`) |
|
|
44
|
+
| `monit` | Mapping | `rsc` or `cmd` (ordered list), `propagate_exit_code` (boolean) |
|
|
45
|
+
| `cron` | Mapping | `cmd`, `state_file`, `cooldown`, `trigger_after`, `max_gap`, `max_restarts`, `propagate_exit_code` |
|
|
46
|
+
| `serve` | Mapping | Defaults for direct `serve`; explicit CLI options take precedence (see [serve](serve.md#configure-serve-in-yaml)) |
|
|
43
47
|
| `scenarios` | `NAME: MAPPING` | A named `stats`, `cron` or `serve` job |
|
|
44
48
|
|
|
49
|
+
These direct command sections are available since 1.3.0. Each command
|
|
50
|
+
reads its own section. Explicit flags override individual YAML fields, even at
|
|
51
|
+
their built-in default value. Repeating `--rsc` or `--cmd` / `--cmd-if` replaces
|
|
52
|
+
the complete YAML list in argument order. For `monit`, choosing `--rsc` also
|
|
53
|
+
discards configured commands and their exit-code policy for that invocation.
|
|
54
|
+
Choosing `--cmd` discards configured resources. Use `--no-propagate-exit-code`
|
|
55
|
+
to override `propagate_exit_code: true`. Simulation is requested with the
|
|
56
|
+
`--dry-run` flag. Global selectors still go before the subcommand. Named
|
|
57
|
+
scenarios keep their own settings.
|
|
58
|
+
|
|
45
59
|
Command/condition aliases and directory-group names use an ASCII letter followed
|
|
46
60
|
by at most 64 letters, digits, underscores, dots or hyphens. Scenario names match
|
|
47
61
|
`[a-z0-9][a-z0-9-]{0,63}` and are selected exactly. Client and container-group names
|
|
@@ -225,6 +239,8 @@ a lock and audit simulated decisions while preserving durable policy state.
|
|
|
225
239
|
| `--allow-maintenance` | `serve` | Off; requires `--allow-actions` |
|
|
226
240
|
| `--trust-proxy-user` | `serve` | Off; requires manual actions or an audit read token. Trust the authenticated proxy to supply the username. |
|
|
227
241
|
| `--audit-read-token-file` | `serve` | Off; requires explicit audit path and a distinct read secret |
|
|
242
|
+
| `--status-token-file` | `serve` | Optional dedicated bearer secret for GET and HEAD on `/v1/status` |
|
|
243
|
+
| `--metrics-token-file` | `serve` | Optional dedicated bearer secret for GET and HEAD on `/metrics` |
|
|
228
244
|
| `--notification-token-file` | `serve` | Off; private notification ingestion secret |
|
|
229
245
|
|
|
230
246
|
Keep one persistent state path per Docker host/job. A busy state lock fails
|
|
@@ -156,3 +156,20 @@ There is no background scheduler or HTTP listener. The optional [trigger delay](
|
|
|
156
156
|
There is no cycle-wide deadline or hysteresis. Existing Docker client timeouts still apply; a hung cycle can hold its
|
|
157
157
|
lock until it exits or is terminated. [Serve mode](serve.md) reuses the same
|
|
158
158
|
engine and cooldown policy for continuous monitoring.
|
|
159
|
+
|
|
160
|
+
## Defaults for the direct cron command
|
|
161
|
+
|
|
162
|
+
Starting with version 1.3.0, a top-level section can supply
|
|
163
|
+
the rule list, persistent state and restart policy:
|
|
164
|
+
|
|
165
|
+
```yaml
|
|
166
|
+
cron:
|
|
167
|
+
state_file: /var/lib/monit-docker/web.json
|
|
168
|
+
cmd: ['mem_percent > 90 ? restart']
|
|
169
|
+
cooldown: 300
|
|
170
|
+
max_restarts: 2
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Preview with `monit-docker --name web cron --dry-run`. A scheduled invocation of
|
|
174
|
+
`monit-docker --name web cron` executes one cycle. Add `--cooldown 600` to
|
|
175
|
+
override just that value. Keep the same selector and state file for the job.
|
|
@@ -42,8 +42,8 @@ or explicitly starts a monitoring cycle. Reads never execute Docker actions.
|
|
|
42
42
|
| --- | --- | --- | --- |
|
|
43
43
|
| `/healthz` | GET, HEAD | Always, no agent credential | 200 `{"alive":true}` |
|
|
44
44
|
| `/readyz` | GET, HEAD | Always, no agent credential | 200 `{"ready":true}` or 503 `{"ready":false}` |
|
|
45
|
-
| `/v1/status` | GET, HEAD |
|
|
46
|
-
| `/metrics` | GET, HEAD |
|
|
45
|
+
| `/v1/status` | GET, HEAD | Dedicated bearer token when `--status-token-file` is configured | 200 cached status, including degraded states |
|
|
46
|
+
| `/metrics` | GET, HEAD | Dedicated bearer token when `--metrics-token-file` is configured | 200 Prometheus text, including degraded states |
|
|
47
47
|
| `/v1/actions` | POST | Manual actions enabled; action token and exact Origin | 202 request record |
|
|
48
48
|
| `/v1/audit` | GET, HEAD | Journal reader enabled; audit token and actor | 200 bounded event page |
|
|
49
49
|
| `/v1/audit/export` | GET, HEAD | Same journal authentication | 200 JSONL or CSV attachment |
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# monit-docker 1.3.0
|
|
2
|
+
|
|
3
|
+
The direct commands now read their own optional sections in `monit-docker.yml`.
|
|
4
|
+
For example, `stats: {rsc: [cpu_percent, mem_usage], output: json}` selects two
|
|
5
|
+
measurements. Running `monit-docker stats --output text` changes the output
|
|
6
|
+
format for one invocation.
|
|
7
|
+
|
|
8
|
+
## Upgrade from 1.2.0
|
|
9
|
+
|
|
10
|
+
Pin the agent and UI images to `1.3.0`, or install the package with
|
|
11
|
+
`python -m pip install --upgrade 'monit-docker==1.3.0'`. Existing command lines
|
|
12
|
+
work with their previous defaults. Upgrade before adding the new YAML sections.
|
|
13
|
+
Keep existing state, audit files and secrets. For a rollback to 1.2.0, restore
|
|
14
|
+
the previous configuration and command line before starting the older agent.
|
|
15
|
+
|
|
16
|
+
- Each of `serve`, `cron`, `stats` and `monit` reads only its own section. An
|
|
17
|
+
explicit flag overrides that field. Repeated `--rsc` or `--cmd` flags replace
|
|
18
|
+
the corresponding YAML list. `monit --rsc` selects observation even if YAML
|
|
19
|
+
configures an action. Use `--dry-run` to preview rules for one invocation.
|
|
20
|
+
- To protect `GET` and `HEAD /v1/status`, set `serve.status_token_file` or pass
|
|
21
|
+
`--status-token-file FILE`. Give clients a dedicated bearer token. When using
|
|
22
|
+
the dashboard, configure its authenticated proxy to inject this token only
|
|
23
|
+
on the upstream status route. Prometheus uses its own metrics credential.
|
|
24
|
+
|
|
25
|
+
See the [configuration reference](https://github.com/decryptus/monit-docker/blob/v1.3.0/docs/config-cli-contract.md)
|
|
26
|
+
and [serve guide](https://github.com/decryptus/monit-docker/blob/v1.3.0/docs/serve.md).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# monit-docker 1.3.1
|
|
2
|
+
|
|
3
|
+
New installations from the root Compose file build a Docker API proxy. Only
|
|
4
|
+
the proxy mounts the daemon socket. The agent can collect container status,
|
|
5
|
+
stats and events. Docker exec and start, stop or restart require separate
|
|
6
|
+
grants for full container IDs.
|
|
7
|
+
|
|
8
|
+
## Upgrade from 1.3.0
|
|
9
|
+
|
|
10
|
+
Keep a copy of your Compose files, configuration and state. The guided
|
|
11
|
+
installer detects an existing direct-socket agent and stops before replacing
|
|
12
|
+
it. Follow the [migration procedure](https://github.com/decryptus/monit-docker/blob/v1.3.1/docs/compose-quickstart.md#migrate-an-existing-agent)
|
|
13
|
+
([français](https://github.com/decryptus/monit-docker/blob/v1.3.1/docs/compose-quickstart-fr.md#migrer-un-agent-existant)).
|
|
14
|
+
It covers the socket group, action targets, readiness and rollback. Existing
|
|
15
|
+
commands that include the socket-proxy overlay can keep using it. Standalone
|
|
16
|
+
Docker commands and separate monitoring or UI examples use their own socket
|
|
17
|
+
configuration.
|
|
@@ -12,6 +12,16 @@ acceptance now has separate post-release evidence, recorded below. See
|
|
|
12
12
|
scope and known limits, and inspect the tagged revision's workflow results for
|
|
13
13
|
actual automated acceptance.
|
|
14
14
|
|
|
15
|
+
## 1.3.1 filtered Docker socket by default
|
|
16
|
+
|
|
17
|
+
The repository quickstart builds the filtered proxy for new installations.
|
|
18
|
+
[Migration and per-target grants](compose-quickstart.md#migrate-an-existing-agent)
|
|
19
|
+
cover existing deployments. The v1.3.0 tag retains its original Compose files.
|
|
20
|
+
|
|
21
|
+
## 1.3.0 configuration for direct commands
|
|
22
|
+
|
|
23
|
+
The [1.3.0 release](release-1.3.0.md) adds per-command YAML settings and optional bearer authentication for status reads.
|
|
24
|
+
|
|
15
25
|
## 1.2.0 security and reliability
|
|
16
26
|
|
|
17
27
|
See the [upgrade notes](release-1.2.0.md) before updating API credentials or the journal proxy.
|
|
@@ -50,7 +50,65 @@ accepts 1–65535. Without `--cmd`, the process observes containers only and nee
|
|
|
50
50
|
no state file. All resources are collected by default; repeated `--rsc` options
|
|
51
51
|
select a subset, for example `--rsc cpu_percent --rsc mem_usage`.
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
### Configure serve in YAML
|
|
54
|
+
|
|
55
|
+
Version 1.3.0 accepts a top-level `serve` section in
|
|
56
|
+
`monit-docker.yml`. For example:
|
|
57
|
+
|
|
58
|
+
```yaml
|
|
59
|
+
serve:
|
|
60
|
+
bind: 127.0.0.1
|
|
61
|
+
port: 9810
|
|
62
|
+
interval: 60
|
|
63
|
+
rsc: [status, health]
|
|
64
|
+
status_token_file: /run/secrets/status
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Start this configuration with `monit-docker serve`, or select a file with
|
|
68
|
+
`monit-docker -c /path/to/monit-docker.yml serve`. An explicit CLI option
|
|
69
|
+
overrides that YAML field, even when the argument equals the built-in default.
|
|
70
|
+
For example, `serve --port 9808 --rsc pid` uses port 9808, collects only PID,
|
|
71
|
+
and keeps the configured interval and status token file.
|
|
72
|
+
|
|
73
|
+
Use the long flag name with underscores in place of hyphens. Use YAML
|
|
74
|
+
booleans for switches and ordered lists for `rsc` and `cmd` (including
|
|
75
|
+
conditional rules). Each CLI list replaces the whole corresponding YAML
|
|
76
|
+
list. To turn off a YAML switch for one launch, use `--no-allow-actions`,
|
|
77
|
+
`--no-allow-maintenance` or `--no-trust-proxy-user`. Keep only file paths in the five token settings. `--dry-run` is
|
|
78
|
+
CLI-only. Global options still precede the subcommand. Named scenarios
|
|
79
|
+
(`monit-docker run NAME`) use their own configuration. The
|
|
80
|
+
[configuration reference](config-cli-contract.md) lists the available settings.
|
|
81
|
+
|
|
82
|
+
| Purpose | Keys under `serve:` |
|
|
83
|
+
|---|---|
|
|
84
|
+
| HTTP listener | `bind`, `port` |
|
|
85
|
+
| Collection | `interval`, `stale_after`, `rsc` |
|
|
86
|
+
| Automatic actions | `cmd`, `state_file`, `cooldown`, `trigger_after`, `max_gap`, `max_restarts` |
|
|
87
|
+
| Manual actions and proxy identity | `allow_actions`, `allow_maintenance`, `action_origin`, `action_cooldown`, `trust_proxy_user` |
|
|
88
|
+
| Secret file paths | `action_token_file`, `audit_read_token_file`, `notification_token_file`, `metrics_token_file`, `status_token_file` |
|
|
89
|
+
|
|
90
|
+
To protect the cached status (container names, IDs and measurements), start the
|
|
91
|
+
agent with `monit-docker serve --status-token-file /run/secrets/status`.
|
|
92
|
+
Use a dedicated file containing 64 lowercase hexadecimal characters and an
|
|
93
|
+
optional final newline. The agent loads the file at startup. GET and HEAD
|
|
94
|
+
require a single `Authorization: Bearer TOKEN` header when enabled. Missing
|
|
95
|
+
or incorrect credentials return HTTP 403. Health and readiness probes stay
|
|
96
|
+
available; Prometheus uses its own `--metrics-token-file`.
|
|
97
|
+
|
|
98
|
+
For example, read status through a local connection or a trusted HTTPS endpoint
|
|
99
|
+
without passing the secret as a command-line argument:
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
{ printf 'Authorization: Bearer '; tr -d '\n' < /run/secrets/status; printf '\n'; } |
|
|
103
|
+
curl --fail --silent --show-error --header @- "$AGENT_URL/v1/status"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
When using the web UI, configure its authenticated reverse proxy to inject the
|
|
107
|
+
status bearer on the upstream `/v1/status` location. The stock Nginx
|
|
108
|
+
configuration clears the upstream Authorization header. Replace that directive
|
|
109
|
+
for this location only and keep the secret on the proxy, outside browser code.
|
|
110
|
+
|
|
111
|
+
The optional
|
|
54
112
|
[separate UI component](ui.md) supplies an authenticated Nginx frontend. Manual
|
|
55
113
|
start/stop/restart is disabled by default; enabling its API requires explicit
|
|
56
114
|
configuration, a proxy secret, an allowed HTTPS origin and persistent state.
|
|
@@ -98,3 +98,21 @@ to switch modes to run simple checks or scheduled rules. Both modes use the
|
|
|
98
98
|
same selectors and rule syntax.
|
|
99
99
|
|
|
100
100
|
If a command fails, start with [troubleshooting](troubleshooting.md).
|
|
101
|
+
|
|
102
|
+
## Defaults for direct stats and monit commands
|
|
103
|
+
|
|
104
|
+
Starting with version 1.3.0, add these optional sections to
|
|
105
|
+
`monit-docker.yml`:
|
|
106
|
+
|
|
107
|
+
```yaml
|
|
108
|
+
stats:
|
|
109
|
+
rsc: [cpu_percent, mem_usage]
|
|
110
|
+
output: json
|
|
111
|
+
monit:
|
|
112
|
+
rsc: [status]
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Run `monit-docker stats` for JSON or `monit-docker stats --output text` for a
|
|
116
|
+
one-time text report. Run `monit-docker --name web monit` to check the selected
|
|
117
|
+
container's status. See the [configuration reference](config-cli-contract.md)
|
|
118
|
+
for rule lists and exit codes.
|
|
@@ -20,6 +20,7 @@ dc() {
|
|
|
20
20
|
docker compose -f docker-compose.yml -f docker-compose.ui.yml \
|
|
21
21
|
-f examples/tutorial-memory/compose.yaml "$@"
|
|
22
22
|
}
|
|
23
|
+
export DOCKER_SOCKET_GID=$(stat -c %g "${DOCKER_SOCKET_PATH:-/var/run/docker.sock}")
|
|
23
24
|
export DEMO_SCENARIO=demo-observe
|
|
24
25
|
dc config --quiet
|
|
25
26
|
dc up -d --wait --wait-timeout 180
|
|
@@ -87,6 +88,8 @@ longer observation windows for production. A restart is only appropriate when
|
|
|
87
88
|
the workload can tolerate it; it does not diagnose or repair a memory leak.
|
|
88
89
|
|
|
89
90
|
```sh
|
|
91
|
+
export MONIT_PROXY_LIFECYCLE_TARGETS=$(docker inspect -f '{{.Id}}' monit-docker-tutorial-memory)
|
|
92
|
+
dc up -d --no-deps socket-proxy
|
|
90
93
|
export DEMO_SCENARIO=demo-guard
|
|
91
94
|
dc up -d --no-deps --wait --wait-timeout 180 monit-docker
|
|
92
95
|
dc restart ui
|
|
@@ -141,6 +144,8 @@ for the lab's live measurements.
|
|
|
141
144
|
Disable the automatic scenario before another take:
|
|
142
145
|
|
|
143
146
|
```sh
|
|
147
|
+
unset MONIT_PROXY_LIFECYCLE_TARGETS
|
|
148
|
+
dc up -d --no-deps socket-proxy
|
|
144
149
|
export DEMO_SCENARIO=demo-observe
|
|
145
150
|
dc up -d --no-deps --wait --wait-timeout 180 monit-docker
|
|
146
151
|
dc restart ui
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
services:
|
|
2
2
|
monit-docker:
|
|
3
|
-
image: decryptus/monit-docker:1.
|
|
3
|
+
image: decryptus/monit-docker:1.3.1
|
|
4
4
|
command: [monit-docker, serve, --bind, 0.0.0.0, --interval, '30']
|
|
5
5
|
restart: unless-stopped
|
|
6
6
|
stop_grace_period: 60s
|
|
@@ -15,7 +15,7 @@ services:
|
|
|
15
15
|
create_host_path: false
|
|
16
16
|
|
|
17
17
|
ui:
|
|
18
|
-
image: decryptus/monit-docker-ui:1.
|
|
18
|
+
image: decryptus/monit-docker-ui:1.3.1
|
|
19
19
|
restart: unless-stopped
|
|
20
20
|
depends_on: [monit-docker]
|
|
21
21
|
networks: [agent, frontend]
|