Hyperjump Tech
Published in

Hyperjump Tech

Monitor your MariaDB or MySQL instances using Monika

Photo by Rubaitul Azad on Unsplash

Monitor your MariaDB or MySQL instances

# For running MariaDB
docker run -p 3307:3306 --detach --name some-mariadb -e MARIADB_USER=example-user -e MARIADB_PASSWORD=my_cool_secret -e MARIADB_ROOT_PASSWORD=my-secret-pw -e MARIADB_DATABASE=exampledb mariadb:latest
# For running MySQL
docker run -p 3308:3306 --detach --name some-mysql -e MYSQL_USER=example-user -e MYSQL_PASSWORD=my_cool_secret -e MYSQL_ROOT_PASSWORD=my-secret-pw -e MYSQL_DATABASE=exampledb mysql:latest
Running Docker commands
  • Use the Desktop notification channel
  • This configuration will monitor our MariaDB and MySQL instances using the credentials from the Docker commands.
  • It will alert you if the DB is offline for two consecutive checks, and will alert you back if it has recovered.
It’s running!
Our DB is offline!

Closing

See you next time!

--

--

Open source first. Cloud native. DevOps excellence.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Denny Pradipta

Full-stack developer who loves to explore new technologies. Uses MongoDB, Express, React, and Node daily. Regularly writing for Hyperjump Technologies.