<mohammadrony>

Metrics and Logs

Prometheus Grafana

docker compose up prometheus grafana -d

Node Exporter

Complete setup guide from this file.

Cadvisor

docker compose up cadvisor -d

Loki

Container's vm configuration from this file.

Start loki application

docker compose up loki -d

Dashboard

Grafana Login

Datasource

  1. Prometheus

    • Goto Add new connection page.
    • Select Prometheus
    • Select Name and URL: http://prometheus:9090
    • Save and Test
  2. Loki

    • Goto Add new connection page.
    • Select Loki
    • Select Name and URL: http://loki:3100
    • Save and Test

Create Dashboard

  • Goto Import Dashboard page.

  • Select Dashboard ID

    ID Name
    193 Docker monitoring
    1860 Node Exporter Full
    18702 Simple Loki Log Dashboard
    893 Docker and system monitoring
  • Select datasource and Import

  • Visit Dashboards page for details view.

Also explore in grafana dashboard with some example query in grafana query file.