{"id":18573250,"url":"https://github.com/naramsim/docker-mysql-prom","last_synced_at":"2026-04-17T07:31:53.760Z","repository":{"id":145778961,"uuid":"264032962","full_name":"Naramsim/docker-mysql-prom","owner":"Naramsim","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-19T19:50:41.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T23:13:02.629Z","etag":null,"topics":["ansible","coding-challenge","docker","mysql","prometheus","sysbench"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Naramsim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-14T21:50:43.000Z","updated_at":"2020-05-19T19:50:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"55be9695-c515-4b80-9f3d-9a44513e7c68","html_url":"https://github.com/Naramsim/docker-mysql-prom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Naramsim/docker-mysql-prom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naramsim%2Fdocker-mysql-prom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naramsim%2Fdocker-mysql-prom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naramsim%2Fdocker-mysql-prom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naramsim%2Fdocker-mysql-prom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Naramsim","download_url":"https://codeload.github.com/Naramsim/docker-mysql-prom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naramsim%2Fdocker-mysql-prom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31919921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","coding-challenge","docker","mysql","prometheus","sysbench"],"created_at":"2024-11-06T23:08:35.198Z","updated_at":"2026-04-17T07:31:53.736Z","avatar_url":"https://github.com/Naramsim.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-mysql-prom\n\n\u003e This project is just a coding challenge I was asked to do.\n\n- Create a Linux server with Docker installed\n- Deploy a MySql DB on Docker\n- Deploy a Prom that monitors the DB on Docker\n- Deploy a Docker service that reads/writes the DB\n- Expose Prom to the Internet\n\n## Architecture\n\nPlease look at the code\n\n## Config\n\nThere is currently no IaaS code so you have to create on GCP a CentOS machine with a `disk-1` disk attached. Then change the fixed IP you find in the `hosts.yml`.\n\nBefore running ansible you should make a copy of the `compose/.env.sample` and change the password written in there.\n\n```sh\ncp .env.sample .env\nnano .env\n```\n\nYou should also change the user and public_key in `ansible/roles/identities/`.\n\n## Init\n\n```sh\ncd ansible\nansible-playbook -e 'ansible_user=\u003cuser_of_public_key\u003e' -i hosts.yml init.yml\n```\n\nThis will create the user `ansible` on the machine which will be then used by ansible.\n\nTo run ansible:\n\n```sh\nansible-playbook -i hosts.yml playbook.yml\n```\n\n## Run\n\nI decided not to start the docker containers with Ansible, so you have to login into the instance and:\n\n```sh\nbash /opt/application/scripts/bootstrap.sh\n```\n\nOpen `\u003chttp://instanceIP/graph\u003e`\n\n## Improvements\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaramsim%2Fdocker-mysql-prom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaramsim%2Fdocker-mysql-prom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaramsim%2Fdocker-mysql-prom/lists"}