Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonnyyu/docker-prometheus-haproxy-stack
Prometheus, Grafana, cAdvisor, NodeExporter, Telegraf and alerting with AlertManager.
https://github.com/sonnyyu/docker-prometheus-haproxy-stack
alertmanager cadvisor docker docker-compose grafana nodeexporter prometheus telegraf
Last synced: 7 days ago
JSON representation
Prometheus, Grafana, cAdvisor, NodeExporter, Telegraf and alerting with AlertManager.
- Host: GitHub
- URL: https://github.com/sonnyyu/docker-prometheus-haproxy-stack
- Owner: sonnyyu
- License: mit
- Created: 2021-11-21T20:37:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-20T20:43:10.000Z (about 2 years ago)
- Last Synced: 2024-08-02T15:47:15.198Z (3 months ago)
- Topics: alertmanager, cadvisor, docker, docker-compose, grafana, nodeexporter, prometheus, telegraf
- Language: Shell
- Homepage:
- Size: 1.2 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Best-README-Template
An awesome README template to jumpstart your projects!
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
## About The Project
![Screenshot](resources/stacks.png)
A 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).
Here's why:
* Your time should be focused on creating something amazing. A project that solves a problem and helps others
* You shouldn't be doing the same tasks over and over like creating a README from scratch
* You should implement DRY principles to the rest of your life :smile:Of 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!
### Built With
This 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.
* Docker
* Docker-compose
```sh
#https://docs.docker.com/engine/install/ubuntu/
docker --version
``````sh
#https://github.com/docker/compose/releases
sudo curl -L "https://github.com/docker/compose/releases/download/v2.10.0/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
```
```sh
sudo usermod -aG docker $USER
```## Getting Started
This is an example of how you may give instructions on setting up your project locally.
To get a local copy up and running follow these simple example steps.### Prerequisites
This is an example of how to list things you need to use the software and how to install them.
* Memory >=2G
```sh
free -h
```
- Docker Version >=18.00
```sh
docker version
```
- Docker Compose Version >=1.1
```sh
docker-compose version
```### Installation
_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._
1. Clone the repo
```sh
git clone https://github.com/sonnyyu/docker-prometheus-haproxy-stack
```
2. Switch to directory
```sh
cd docker-prometheus-haproxy-stack
```
3. Setup ownership as grafana
```sh
sudo chown 472:472 -R grafana/grafana_data
```
4. Start up docker stack as deamon
```sh
docker-compose up -d
```
5. Stop docker stack
```sh
docker-compose down
```
6. Remove docker stack
```sh
docker-compose down -v
```
7. Delete all containers using the following command
```sh
docker rm -f $(docker ps -a -q)
```
8. Delete all volumes using the following command
```sh
docker volume rm $(docker volume ls -q)
```
9. Deploying Portainer is as simple as:
```sh
docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer
```
## Usage
![Screenshot](resources/container.png)
Use 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.
_For more examples, please refer to the [Documentation](https://example.com)_
## Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
If 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".
Don't forget to give the project a star! Thanks again!1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request## License
Distributed under the MIT License. See `LICENSE.txt` for more information.
## Contact
Your Name - [@your_twitter](https://twitter.com/your_username) - [email protected]
Project Link: [https://github.com/your_username/repo_name](https://github.com/your_username/repo_name)
## Acknowledgments
Use 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!
*