Coder Social home page Coder Social logo

andreanz22 / proxysql-grafana-prometheus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from proxysql/proxysql-grafana-prometheus

0.0 0.0 0.0 48 KB

A Dockerized Grafana / Prometheus environment for ProxySQL dashboards

License: GNU General Public License v3.0

proxysql-grafana-prometheus's Introduction

proxysql-grafana-prometheus

A Dockerized Grafana / Prometheus environment for ProxySQL dashboards

  • Ensure docker is installed and running as well as docker-compose (see https://docs.docker.com/get-docker/)
  • In your ProxySQL instances make sure to enable the restapi and specify a free port by configuring the following ProxySQL Admin variables:
SET admin-restapi_enabled='true';
SET admin-restapi_port=6070;

LOAD ADMIN VARIABLES TO RUNTIME;
SAVE ADMIN VARIABLES TO DISK;
  • Edit the prometheus/prometheus.yml and add your ProxySQL instances:
  - job_name: 'proxysql'
    scrape_interval: 5s

    static_configs:
         - targets: ['192.168.1.28:6070','192.168.1.28:6071']

  • Run docker-compose up
  • Once instances are up you can connect to http://localhost:3000 (or http://<ip of server>:3000)
  • The default credentials are admin / foobar (this can be edited in grafana/config.monitoring by specifying a different GF_SECURITY_ADMIN_PASSWORD)
  • Dashboards are provisioned from the grafana/provisioning/dashboards directory (save JSON dashboards to be used as templates here):
$ ls -l grafana/provisioning/dashboards/
total 116
-rw-rw-r-- 1 root root 18541 Dec  2 23:59 ProxySQL-Fleet-Overview.json
-rw-rw-r-- 1 root root 92584 Nov 13 01:03 ProxySQL-Host-Statistics.json
-rw-r--r-- 1 root root   184 Oct  8 16:09 dashboard.yml

proxysql-grafana-prometheus's People

Contributors

javierjf 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.