Infrastructure: Grafana & Loki

Setup Grafana & Loki using Podman Desktop

# Cleanup
podman rm gdev-grafana -f
podman rm gdev-loki -f

# Create network
podman network create gdev-net

# Run grafana & Podman
podman run --network gdev-net --name gdev-grafana -d -p 3000:3000 grafana/grafana
podman run --network gdev-net --name gdev-loki -d -p 3100:3100 grafana/loki 

#Note: Grafana default credentials are admin/admin
copy to setup-with-podman.ps1 and run it on PowerShell

Grafana & Loki setup using Docker Desktop

# Cleanup
docker rm gdev-grafana -f
docker rm gdev-loki -f

# Run grafana & Podman
docker run --name gdev-grafana -d -p 3000:3000 grafana/grafana
docker run --name gdev-loki -d -p 3100:3100 grafana/loki 
copy to setup-with-docker.ps1 and run in on PowerShell

Setup Validation

  • Grafana: curl -i http://localhost:3000/api/health until response code is 200
  • Loki: curl -i http://localhost:3100/ready until response code is 200