{"id":13581305,"url":"https://github.com/sonnyyu/docker-prometheus-haproxy-stack","last_synced_at":"2025-04-06T07:31:55.407Z","repository":{"id":93130839,"uuid":"430474511","full_name":"sonnyyu/docker-prometheus-haproxy-stack","owner":"sonnyyu","description":"Prometheus, Grafana, cAdvisor, NodeExporter, Telegraf and alerting with AlertManager. ","archived":false,"fork":false,"pushed_at":"2022-08-20T20:43:10.000Z","size":1262,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-05T20:47:04.775Z","etag":null,"topics":["alertmanager","cadvisor","docker","docker-compose","grafana","nodeexporter","prometheus","telegraf"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sonnyyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-11-21T20:37:55.000Z","updated_at":"2022-09-08T08:52:56.000Z","dependencies_parsed_at":"2023-04-19T10:04:23.332Z","dependency_job_id":null,"html_url":"https://github.com/sonnyyu/docker-prometheus-haproxy-stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonnyyu%2Fdocker-prometheus-haproxy-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonnyyu%2Fdocker-prometheus-haproxy-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonnyyu%2Fdocker-prometheus-haproxy-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonnyyu%2Fdocker-prometheus-haproxy-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonnyyu","download_url":"https://codeload.github.com/sonnyyu/docker-prometheus-haproxy-stack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247450116,"owners_count":20940858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["alertmanager","cadvisor","docker","docker-compose","grafana","nodeexporter","prometheus","telegraf"],"created_at":"2024-08-01T15:02:00.144Z","updated_at":"2025-04-06T07:31:54.438Z","avatar_url":"https://github.com/sonnyyu.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n\r\n \r\n\r\n\r\n  \u003ch3 align=\"center\"\u003eBest-README-Template\u003c/h3\u003e\r\n\r\n  \u003cp align=\"center\"\u003e\r\n    An awesome README template to jumpstart your projects!\r\n    \u003cbr /\u003e\r\n    \u003ca href=\"https://github.com/othneildrew/Best-README-Template\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\r\n    \u003cbr /\u003e\r\n    \u003cbr /\u003e\r\n    \u003ca href=\"https://github.com/othneildrew/Best-README-Template\"\u003eView Demo\u003c/a\u003e\r\n    ·\r\n    \u003ca href=\"https://github.com/othneildrew/Best-README-Template/issues\"\u003eReport Bug\u003c/a\u003e\r\n    ·\r\n    \u003ca href=\"https://github.com/othneildrew/Best-README-Template/issues\"\u003eRequest Feature\u003c/a\u003e\r\n  \u003c/p\u003e\r\n\u003c/div\u003e\r\n\r\n\r\n\r\n\u003c!-- TABLE OF CONTENTS --\u003e\r\n\u003cdetails\u003e\r\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\r\n  \u003col\u003e\r\n    \u003cli\u003e\r\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\r\n      \u003cul\u003e\r\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\r\n      \u003c/ul\u003e\r\n    \u003c/li\u003e\r\n    \u003cli\u003e\r\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\r\n      \u003cul\u003e\r\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\r\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\r\n      \u003c/ul\u003e\r\n    \u003c/li\u003e\r\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\r\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\r\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\r\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\r\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\r\n    \u003cli\u003e\u003ca href=\"#acknowledgments\"\u003eAcknowledgments\u003c/a\u003e\u003c/li\u003e\r\n  \u003c/ol\u003e\r\n\u003c/details\u003e\r\n\r\n\r\n\u003c!-- ABOUT THE PROJECT --\u003e\r\n\r\n## About The Project\r\n\r\n![Screenshot](resources/stacks.png)\r\n\r\nA monitoring solution for Docker hosts and containers with [Prometheus](https://prometheus.io/), [Grafana](http://grafana.org/), [cAdvisor](https://github.com/google/cadvisor), [NodeExporter](https://github.com/prometheus/node_exporter) and alerting with [AlertManager](https://github.com/prometheus/alertmanager).\r\n\r\nHere's why:\r\n* Your time should be focused on creating something amazing. A project that solves a problem and helps others\r\n* You shouldn't be doing the same tasks over and over like creating a README from scratch\r\n* You should implement DRY principles to the rest of your life :smile:\r\n\r\nOf course, no one template will serve all projects since your needs may be different. So I'll be adding more in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue. Thanks to all the people have contributed to expanding this template!\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\r\n\r\n\r\n\r\n### Built With\r\n\r\nThis section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.\r\n* Docker\r\n* Docker-compose\r\n```sh\r\n#https://docs.docker.com/engine/install/ubuntu/\r\ndocker --version\r\n```\r\n\r\n```sh\r\n#https://github.com/docker/compose/releases\r\nsudo curl -L \"https://github.com/docker/compose/releases/download/v2.10.0/docker-compose-linux-x86_64\" -o /usr/local/bin/docker-compose\r\nsudo chmod +x /usr/local/bin/docker-compose\r\ndocker-compose --version\r\n```\r\n```sh\r\nsudo usermod -aG docker $USER\r\n```\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\r\n\u003c!-- GETTING STARTED --\u003e\r\n## Getting Started\r\n\r\nThis is an example of how you may give instructions on setting up your project locally.\r\nTo get a local copy up and running follow these simple example steps.\r\n\r\n### Prerequisites\r\n\r\nThis is an example of how to list things you need to use the software and how to install them.\r\n* Memory  \u003e=2G  \r\n  ```sh\r\n  free -h\r\n  ```\r\n- Docker Version \u003e=18.00\r\n  ```sh\r\n  docker version\r\n  ```\r\n- Docker Compose Version \u003e=1.1\r\n  ```sh\r\n  docker-compose version\r\n  ``` \r\n\r\n### Installation\r\n\r\n_Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services._\r\n\r\n1. Clone the repo\r\n   ```sh\r\n   git clone https://github.com/sonnyyu/docker-prometheus-haproxy-stack\r\n   ```\r\n2. Switch to directory\r\n   ```sh\r\n   cd docker-prometheus-haproxy-stack\r\n   ```\r\n3. Setup ownership as grafana\r\n   ```sh\r\n   sudo chown 472:472 -R grafana/grafana_data\r\n   ```\r\n4. Start up docker stack  as deamon\r\n   ```sh\r\n   docker-compose up -d\r\n   ```\r\n5. Stop docker stack\r\n   ```sh\r\n   docker-compose down\r\n   ```\r\n6. Remove docker stack\r\n   ```sh\r\n   docker-compose down -v\r\n   ```\r\n7. Delete all containers using the following command\r\n   ```sh\r\n   docker rm -f $(docker ps -a -q)\r\n   ```\r\n8. Delete all volumes using the following command\r\n   ```sh\r\n   docker volume rm $(docker volume ls -q)\r\n   ```\r\n   \r\n9. Deploying Portainer is as simple as:\r\n```sh\r\n docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer\r\n```\r\n​       \u003c!-- USAGE EXAMPLES --\u003e\r\n\r\n## Usage\r\n\r\n\r\n![Screenshot](resources/container.png)\r\n\r\n\r\nUse this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.\r\n\r\n_For more examples, please refer to the [Documentation](https://example.com)_\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\r\n\r\n\r\n\r\n\u003c!-- CONTRIBUTING --\u003e\r\n## Contributing\r\n\r\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\r\n\r\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\r\nDon't forget to give the project a star! Thanks again!\r\n\r\n1. Fork the Project\r\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\r\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\r\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\r\n5. Open a Pull Request\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\r\n\r\n\r\n\r\n\u003c!-- LICENSE --\u003e\r\n## License\r\n\r\nDistributed under the MIT License. See `LICENSE.txt` for more information.\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\r\n\r\n\r\n\r\n\u003c!-- CONTACT --\u003e\r\n## Contact\r\n\r\nYour Name - [@your_twitter](https://twitter.com/your_username) - email@example.com\r\n\r\nProject Link: [https://github.com/your_username/repo_name](https://github.com/your_username/repo_name)\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\r\n\r\n\r\n\r\n\u003c!-- ACKNOWLEDGMENTS --\u003e\r\n## Acknowledgments\r\n\r\nUse this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!\r\n\r\n* \r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\r\n\r\n\r\n\r\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonnyyu%2Fdocker-prometheus-haproxy-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonnyyu%2Fdocker-prometheus-haproxy-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonnyyu%2Fdocker-prometheus-haproxy-stack/lists"}