Skip to content

Latest commit

 

History

History
67 lines (36 loc) · 1.66 KB

README.md

File metadata and controls

67 lines (36 loc) · 1.66 KB

Monitoring

A simple monitoring demonstration.

How does it work?

The following tools are used

How do I use it?

You need to have docker-compose on your system.

  1. Clone the repository

    git clone [email protected]:hbm/monitoring.git

  2. Go into the newly created folder

    cd monitoring

  3. Start the containers

    docker-compose up -d

  4. Make sure all containers are running

    docker-compose ps

    ps

  5. Go to http://localhost:3000 to access Grafana. Username is admin and password is also admin.

  6. On the main screen click on the "Docker Prometheus Monitoring" dashboard.

    dashboard

  7. In the end if you want to shut down everything run

    docker-compose down

Where are my other services?

  1. node_exporter: http://localhost:9100
  2. cadvisor: http://localhost:8080
  3. prometheus: http://localhost:9090

Development

As you can see everything is configured via .yml files.

docker-compose.yml

If you want to add another service, e.g. backend application (Go, PHP, Python, Node.js, Java, etc.) or database/cache (PostgreSQL, Redis, etc.) this is where to add it.

prometheus/prometheus.yml

Do you want to add another scrape target? Change the scraping frequency? Do it here.

grafana/...

Change the datasource for Grafana or install a new dashboard.