3.00 Full environment docker compose setup - MartinWong06/grafana GitHub Wiki

Environment Overview

Details of workshop repository

workshop/Sample Prometheus Query - Sample PromQL that can be use
workshop/curl_command - Using for generate API traffic by using sample application
workshop/docker-compose.yml - Environment docker compose file
workshop/graphite_manual_push_command - command that use for manual push data to Graphite
workshop/graphite_random_data.sh - automatic script that generate data for graphite
workshop/loki/conf/loki-config.yml - default Loki configuraion file
workshop/prometheus/alert.yml - sample alert for Prometheus
workshop/prometheus/prometheus.yml - Prometheus configuration file
workshop/promtail/promtail-config.yml - Promtail configuration with docker job scrap docker log

URL

Grafana - Chapter 2
Version 9
http://localhost:3009
Version 10
http://localhost:3010
Grafana - workshop and lab
http://localhost:3001
http://localhost:3001/metrics
Prometheus
http://localhost:9090/
Prometheus Node Exporter
http://localhost:9090/metrics
Node Exporter
http://localhost:9100/metrics
Graphite
http://localhost:8081/
Sample Application
http://localhost:8082/metrics
Loki
http://localhost:3100/metrics
Promtail
http://localhost:9080/targets
Cadvisor
http://localhost:8080/docker/** docker name **
MySQL
http://instance_ip:3306

Setup Environment

  1. Access to the workshop directory
cd /grafana/workshop/
  1. Execute docker compose command to bring up containers
sudo docker compose up -d
  1. Verify all containers are in healthy state
sudo docker ps -a

Docker command

Execute docker compose bring up containers with detach mode

docker compose up -d 

Bring down the containers

docker compose down

List docker network

docker network ls

List all state containers

docker ps -a

Access container logs

docker logs "container name"
⚠️ **GitHub.com Fallback** ⚠️