Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker loki

wget https://raw.githubusercontent.com/grafana/loki/v2.4.2/production/docker-compose.yaml -O docker-compose.yaml
docker-compose -f docker-compose.yaml up
Comment

docker loki

cd "<local-path>"
wget https://raw.githubusercontent.com/grafana/loki/v2.4.2/cmd/loki/loki-local-config.yaml -O loki-config.yaml
docker run --name loki -v <local-path>:/mnt/config -p 3100:3100 grafana/loki:2.4.2 --config.file=/mnt/config/loki-config.yaml
wget https://raw.githubusercontent.com/grafana/loki/v2.4.2/clients/cmd/promtail/promtail-docker-config.yaml -O promtail-config.yaml
docker run -v <local-path>:/mnt/config -v /var/log:/var/log --link loki grafana/promtail:2.4.2 --config.file=/mnt/config/promtail-config.yaml
Comment

docker loki

wget https://raw.githubusercontent.com/grafana/loki/v2.4.2/cmd/loki/loki-local-config.yaml -O loki-config.yaml
docker run --name loki -v $(pwd):/mnt/config -p 3100:3100 grafana/loki:2.4.2 -config.file=/mnt/config/loki-config.yaml
wget https://raw.githubusercontent.com/grafana/loki/v2.4.2/clients/cmd/promtail/promtail-docker-config.yaml -O promtail-config.yaml
docker run -v $(pwd):/mnt/config -v /var/log:/var/log --link loki grafana/promtail:2.4.2 -config.file=/mnt/config/promtail-config.yaml
Comment

PREVIOUS NEXT
Code Example
Shell :: terminal read json file 
Shell :: ubuntu bluetooth microphone not working 
Shell :: Copy a Remote File to a Local System using the scp Command 
Shell :: bash get lines between 
Shell :: online c compiler with working fork 
Shell :: composer install ubuntu 
Shell :: Delete all linux package 
Shell :: download influxdb for windows 
Shell :: creating docker based vms with ranchervm but requires KVM installed 
Shell :: connect vscode to gitlab 
Shell :: git pull on another branch 
Shell :: make tar.gz 
Shell :: your system lacks libtoolize 
Shell :: find all occurrence in directory linux 
Shell :: windows cmd equivalent of grep 
Shell :: YCM core library not detected 
Shell :: shellpish 
Shell :: check g++ on ubuntu 
Shell :: how to use /dev/urandom 
Shell :: install balena etcher on manjaro linux 
Shell :: syntax error: unexpected end of file bash 
Shell :: pi disable ssh warning 
Shell :: git clone set directory 
Shell :: mocha quiet 
Shell :: install apk adb 
Shell :: registry open run 
Shell :: shell variables in unix 
Shell :: install powershell 7 
Shell :: how to set two wallpaper in ubuntu 
Shell :: Run valet secure 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =