Skip to content

Docker Compose setup for Prometheus + Grafana (used in Tripviss deployment)

Notifications You must be signed in to change notification settings

tripviss/tripviss-monitoring

Repository files navigation

Tripviss Monitoring

Prerequisites

Preparation

Note: The command examples below are for a Ubuntu 16.04 host.

  1. Enable metrics in Docker.

    sudo apt-get install -y jq
    
    { sudo cat /etc/docker/daemon.json 2>/dev/null || echo '{}'; } | jq '. + {"experimental": true, "metrics-addr": "0.0.0.0:9323"}' | sudo tee /etc/docker/daemon.json.tmp && sudo mv /etc/docker/daemon.json.tmp /etc/docker/daemon.json
    
    sudo systemctl restart docker

How to run

  1. Prepare the docker-compose.override.yml file.

    You may copy from the default template file (docker-compose.override.yml.dist), then modify as necessary.

  2. Pull the images.

    docker-compose pull
  3. Create and run the services.

    1. In a development environment, it is easier to just use Docker Compose.

      docker-compose up -d
    2. In a production environment, the services should be deployed using Docker Engine's swarm mode.

      1. Generate a combined Docker Compose file:

        docker-compose config --resolve-image-digests > docker-stack.prod.yml

        Then manually apply any changes as necessary.

      2. Deploy!

        docker stack deploy -c docker-stack.prod.yml tripvissmonitoring

Releases

No releases published

Packages

No packages published

Languages