安装
Loki、promtail、Grafana
二进制包安装
配置文件下载
wget https://raw.githubusercontent.com/grafana/loki/master/cmd/loki/loki-local-config.yaml
wget https://raw.githubusercontent.com/grafana/loki/master/cmd/promtail/promtail-local-config.yaml
二进制包下载
wget https://github.com/grafana/loki/releases/download/v1.6.0/loki-linux-amd64.zip
wget https://github.com/grafana/loki/releases/download/v1.6.0/promtail-linux-amd64.zip
wget https://mirrors.huaweicloud.com/grafana/7.1.5/grafana-7.1.5.linux-amd64.tar.gz
Loki配置文件
更多参数请看官网https://grafana.com/docs/loki/latest/configuration/
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_port: 39095 #grpc监听端口,默认为9095
grpc_server_max_recv_msg_size: 15728640 #grpc最大接收消息值,默认4m
grpc_server_max_send_msg_size: 15728640 #grpc最大发送消息值,默认4m
ingester:
lifecycler:
address: 192.168.8.253 #IP地址
ring: