Code Monkey home page Code Monkey logo

grafana-dashboards's Introduction

Grafana dashboards with Prometheus for MySQL

This is a set of Grafana dashboards to be used with Prometheus datasource for MySQL and system monitoring. The dashboards rely on alias label in your Prometheus config.

  • Cross Server Graphs
  • Disk Performance
  • Galera Graphs
  • MySQL InnoDB Metrics
  • MySQL MyISAM Metrics
  • MySQL Overview
  • MySQL Query Response Time Histograms
  • MySQL Replication
  • MySQL Table Statistics
  • MySQL User Statistics
  • System Overview
  • TokuDB Graphs

Setup instructions

Add datasource in Grafana

image

Edit Prometheus config

The dashboards use alias label to work with individual hosts. Ensure you have alias defined for each of your targets. For example, if you want to monitor 192.168.56.107 the excerpt of the config will be look like this:

scrape_configs:
  - job_name: mysql
    target_groups:
      - targets: ['192.168.56.107:9104']
        labels:
          alias: myhost1

  - job_name: linux
    target_groups:
      - targets: ['192.168.56.107:9100']
        labels:
          alias: myhost1

job_name is not important. Note, adding a new label to the existing Prometheus instance will introduce a mess with the time-series. So it is recommended to start with alias from scratch.

Edit Grafana config

Enable JSON dashboards by uncommenting those lines in grafana.ini:

[dashboards.json]
enabled = true
path = /var/lib/grafana/dashboards

If you wish you may import the individual dashboards via UI and ignore this and the next steps.

Install dashboards

git clone https://github.com/percona/grafana-dashboards.git
cp -r grafana-dashboards/dashboards /var/lib/grafana/

Restart Grafana

service grafana-server restart

Update instructions

Simply copy the new dashboards to /var/lib/grafana/dashboards and restart Grafana.

Graph samples

Here is some sample graphs.

image

image

image

image

image

image

image

image

grafana-dashboards's People

Contributors

fipar avatar roman-vynar avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.