Skip to content

HBM/monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple monitoring demonstration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published