Skip to content

dieguini/Monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitoring

Project that seeks to provide a guide for the necessary configurations and base files that integrate the tools:

Read this in other languages: English, Spanish.

1. Pre requisits

For the project to work you need:

  • Docker Engine
  • Docker Compose (Comes by default in the latest versions)

2. Usage

There are two use cases:

  • Test: Give an example with basic configurations
  • Production: Requires advanced settings

2.1. Test

The test case is used to see a simple example with everything preconfigured, it works by default with the docker-compose.yml file.

Enter the TESTS folder.

Execute

docker-compose up -d

2.2. Production

The production case is used to create an almost production-ready environment, it works by default with the docker-compose.yml file.

2.2.1. .env & .grafana-env

Two files must be configured:

  • .env: Environment variables, ports (Example in PRODUCCION > .env.example)
  • .grafana-env: Grafana server variables (Example in PRODUCCION > .grafana-env.example)

.env

  • PROM_HOST_PORT: Host port for prometheus (Our team)
  • PROM_CONTAINER_PORT: Container port for prometheus
  • GF_HOST_PORT: Host port for grafana (Our team)
  • GF_CONTAINER_PORT: Container port for grafana

.grafana-env

  • GF_SECURITY_ADMIN_USER: Grafana admin user
  • GF_SECURITY_ADMIN_PASSWORD: Admin password

2.2.2. Execution

Enter the folder PRODUCCION

Execute

docker-compose up -d

3. Files

Structure of files:

  • TEST (Example environment - Pre-configurations made)
    • Grafana: Directory containing Grafana configurations
    • Prometheus: Directory containing Prometheus configurations
    • docker-compose.yml (Basic): File containing the docker images used for the example case
  • PRODUCTION
    • Grafana: Directory containing Grafana configurations
    • Prometheus: Directory containing Prometheus configurations
    • docker-compose-prod.yml (Advanced): File that contains the docker images, as it is intended for production, it will request more data and will assemble separate volumes

3.1. Grafana

Contains basic configurations of grafana server

  • datasource.yml:
  • grafana.ini: Configuration obtained fromhere

3.2. Prometheus

Setting

  • prometheus.yml: Basic configuration of prometheus (The targets to monitor are found)

4. Guides

I attach some guides that helped me to enrich, understand and assemble the examples:

5. Docker Hub

Official links of Docker images used in the project:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages