Docomon - A simple way to monitoring your docker container
277
This repository contains a container monitoring application that provides real-time monitoring and notifications for Docker containers. The application tracks the state of containers, detects new containers, and sends notifications when containers are added or removed.
Features:
The application is built using Go and leverages the Docker API for container management. It utilizes webhooks to send notifications to Discord and Google Chat platforms. The codebase will be rewrite in the future to clean architecture design pattern, allowing for easy testing, maintainability, and future enhancements.
Get started with container monitoring and receive timely notifications for your Docker environment using this Docker Container Monitoring application.
SERVER_NAME=troke-server
GOOGLE_CHAT_WEBHOOK_URL=your_google_chat_webhook_url
DISCORD_WEBHOOK_URL=your_discord_webhook_url
Define the environment just what you want
docker run --restart always -v /var/run/docker.sock:/var/run/docker.sock --env-file .env --name docomon troke12/docomon:latest
--env-file /path/to/your/env/var/run/docker.sock to the right path of docker sockThis setup was currently on linux
cp docomon-linux-amd64 /user/local/bin/docomonchmod +x /usr/local/bin/docomondocomon.conf on /etc/docomon.confcat <<EOF > "/etc/docomon.conf"
SERVER_NAME="server-name"
GOOGLE_CHAT_WEBHOOK_URL="https://chat.googleapis.com"
DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/"
EOF
docomon.servicecat <<EOF > "/etc/systemd/system/docomon.service"
[Unit]
Description=docomon Service
After=network.target
[Service]
ExecStart=/usr/local/bin/docomon --env-file=/etc/docomon.conf
[Install]
WantedBy=multi-user.target
EOF



Content type
Image
Digest
sha256:c90658d5e…
Size
5.5 MB
Last updated
about 3 years ago
docker pull troke12/docomon