Skip to content
Docker image that monitors a MySQL slave server for errors and replication lag and posts the results to fluentbit
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.env.example
.gitignore
Dockerfile
Makefile
README.md
monitor.sh

README.md

MySQL Replication Monitor

This will monitor a MySQL slave server for errors and replication lag and send the results to fluentbit.

Configuration

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

See also .env.example

Releasing

# Build docker image
make build

# Push docker image
make deploy

# Run docker image (using .env file)
make run
You can’t perform that action at this time.