This repository provides a Docker Compose setup for running a self-hosted monitoring stack using Prometheus and Grafana.
- Works out of the box: Just configure the
.envfile and run a start script. - Pre-configured: Prometheus is set up to scrape itself, and Grafana already has Prometheus added as a data source.
- Ready-to-use Scripts: Includes simple scripts to start, restart, and update the application.
- Persistent Data: Data for both services is stored in local directories to ensure persistence across restarts.
- Docker and Docker Compose installed.
- A
.envfile with the required environment variables (you can use the one provided).
-
Clone the repository:
git clone https://github.com/AiratTop/monitoring-self-hosted.git cd monitoring-self-hosted -
Create the shared network: This setup uses a shared network to easily connect to other services. If you haven't already, create the network:
docker network create shared_network
-
Configure the environment: The
.envfile contains the default admin credentials for Grafana. You can change them if you wish. -
Start the application:
docker compose up -d
-
Access the application:
- Prometheus: http://localhost:9090
- Grafana: http://localhost:3000
The repository includes several scripts to simplify management:
- Start:
docker compose up -d - Restart:
./restart-docker.sh - Update:
./update-docker.sh(Pulls the latest Docker images and restarts the services)
prometheus: The Prometheus monitoring server.grafana: The Grafana visualization dashboard.
Check out other self-hosted solutions:
- postgresql-self-hosted: A simple and robust PostgreSQL setup.
- mysql-self-hosted: A self-hosted MySQL instance.
- clickhouse-self-hosted: High-performance columnar database for analytics.
- metabase-self-hosted: Self-hosted Metabase on Docker for business intelligence and analytics.
- qdrant-self-hosted: A vector database for AI applications.
- redis-self-hosted: A fast in-memory data store, often used as a cache or message broker.
- caddy-self-hosted: A modern, easy-to-use web server with automatic HTTPS.
- wordpress-self-hosted: Production-ready WordPress stack with MySQL, phpMyAdmin, and WP-CLI.
- n8n-self-hosted: Scalable n8n with workers, Caddy for auto-HTTPS, and backup scripts.
- monitoring-self-hosted: Self-hosted monitoring stack with Prometheus and Grafana.
- ollama-self-hosted: Ready-to-use solution for running Ollama with the Open WebUI on Docker.
- authentik-self-hosted: Authentik is a flexible, open-source Identity & Access Management (IAM) solution.
- gatus-self-hosted: Automated service health dashboard with a PostgreSQL backend and backup scripts.
This project is licensed under the MIT License - see the LICENSE file for details.
AiratTop
- Website: airat.top
- GitHub: @AiratTop
- Email: mail@airat.top
- Repository: monitoring-self-hosted