MySQL Replication Monitor
This will monitor a MySQL slave server for errors and replication lag and send the results to fluentbit.
Per default, a cronjob will run every 5 minutes, but any of the settings can be overwritten with the following environment variables:
MYSQL_HOSTNAME MYSQL_USERNAME MYSQL_PASSWORD FLUENTBIT_HOSTNAME FLUENTBIT_PORT="5170"
CRON_D_MONITOR="*/5 * * * * root /monitor.sh | logger\n"
Note: The "\n" at the end of the line is required by
cron to be able to recognize the job
# Build docker image make build # Push docker image make deploy # Run docker image (using .env file) make run