Skip to content

alexal29/mysqlex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysqlex

A sample setup of mysql + exporter + prometheus +grafana

Table of Contents

Getting Started

Prerequisites

  • Since this repo's script contains some unix command, The best scenario is you are using a Unix-like operating system: macOS, Linux, BSD. On Windows: WSL2 is preferred, but cygwin or msys also mostly work. If you are using other operating system, you can write your own script to run this tool.
  • This whole project is built on containerized architect so Docker & Docker Compose should be installed.
  • make should be installed to be able to run the setup script.

Usage

# Run the setup script with the bellow command
make

Result Observation

Follow these instructions to view your result.

How to check Method
Running containers docker compose ps
Prometheus dashboard visit http://localhost:9090/
MySQL exporter metric visit http://localhost:9104/metrics

To implement Grafana graph & chart you need to:

  • Create a Grafana account
  • Create a Prometheus data source host on Grafana
  • Replace remote_write info in prometheus.yml

License

mysqlex is released under the MIT license.

About

A sample setup of mysql + exporter + prometheus +grafana

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published