Git Product home page Git Product logo

datadog-mysql-vagrant's Introduction

datadog-mysql-vagrant

This was built to test reporting on a remote MySQL instance. Therefore this Vagrant doesn't install MySQL locally. This was slapped together rather quickly so it is missing automation for a number of steps.

  • Run MySQL via Docker:
    docker run -p 3306:3306 --name kelnerhax-mysql -e MYSQL_ROOT_PASSWORD=<password> -d mysql:latest
    
  • docker inspect <container-name> to get the container ip from `NetworkSettings.IPAddress"
  • docker exec -it <container-name> /bin/bash to get on the docker container
  • Follow https://docs.datadoghq.com/integrations/mysql/#prepare-mysql
    • mysql -u root --password=<password>
    • CREATE USER 'datadog'@'%' IDENTIFIED BY '<dd-mysql-password>';
    • GRANT REPLICATION CLIENT ON *.* TO 'datadog'@'%' WITH MAX_USER_CONNECTIONS 5;
    • GRANT PROCESS ON *.* TO 'datadog'@'%';
    • exit
    • mysql -u datadog --password=<dd-mysql-password> -e "show status" | grep Uptime && echo -e "\033[0;32mMySQL user - OK\033[0m"
  • For sake of time this vagrant doesn't automatically configure the MySQL YAML simply vagrant ssh and configure by hand for now
    • Use the special virtualbox IP 10.0.2.2 to connect to the mysql instance via the host on port 3306
  • Spin up a second vagrant the same way using ./second_vagrant/Vagrantfile
  • This will result in hosts reporting the same metric (duplicate) as seen here: two-hosts-one-db

datadog-mysql-vagrant's People

Contributors

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