Skip to content

Ready-to-use Docker Compose setup for a self-hosted monitoring stack with Prometheus and Grafana. Pre-configured for immediate use with persistent storage and easy-to-use management scripts.

License

Notifications You must be signed in to change notification settings

AiratTop/monitoring-self-hosted

Monitoring Self-Hosted with Docker

monitoring-self-hosted

This repository provides a Docker Compose setup for running a self-hosted monitoring stack using Prometheus and Grafana.

Features

  • Works out of the box: Just configure the .env file 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.

Prerequisites

  • Docker and Docker Compose installed.
  • A .env file with the required environment variables (you can use the one provided).

Usage

  1. Clone the repository:

    git clone https://github.com/AiratTop/monitoring-self-hosted.git
    cd monitoring-self-hosted
  2. 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
  3. Configure the environment: The .env file contains the default admin credentials for Grafana. You can change them if you wish.

  4. Start the application:

    docker compose up -d
  5. Access the application:

Usage

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)

Services

  • prometheus: The Prometheus monitoring server.
  • grafana: The Grafana visualization dashboard.

See Also

Check out other self-hosted solutions:

License

This project is licensed under the MIT License - see the LICENSE file for details.


Author

AiratTop

About

Ready-to-use Docker Compose setup for a self-hosted monitoring stack with Prometheus and Grafana. Pre-configured for immediate use with persistent storage and easy-to-use management scripts.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

Languages