Skip to content

Run the latest version of the Prometheus-Loki-Grafana-NodeExporter-Cadvisor with Docker and Docker Compose.

Notifications You must be signed in to change notification settings

canogluonur/Prometheus-Loki-Grafana-NodeExporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus-Loki-Grafana-NodeExport on Docker

Run the latest version of the Grafana-Loki-Prometheus with Docker and Docker Compose. You can monitoring and logging your system and containers.

loki

we need to use a plugin to collect promtaile container log. we will install a driver and get permission for loki.

 docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions

then we will change the default settings of where docker will dump the logs to loki. we will do this by entering a few extra lines in the /etc/docker/daemon.json file. the config we will enter is below and then we will restart docker.

{
    "log-driver": "loki",
    "log-opts": {
        "loki-url": "http://localhost:3100/loki/api/v1/push",
        "loki-batch-size": "400"
    }
}

then run this command.

systemctl restart docker

finally you can run this command

docker compose up -d 

About

Run the latest version of the Prometheus-Loki-Grafana-NodeExporter-Cadvisor with Docker and Docker Compose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published