环境搭建
Grafana 搭建
docker search grafana
docker pull grafana/grafana
docker run -d -p 3000:3000 --name grafana grafana/grafana
Loki 搭建
创建宿主机目录
mkdir -p /usr/local/glp/loki/index
mkdir -p /usr/local/glp/loki/chunks
chmod -R 777 /usr/local/glp/loki/index
chmod -R 777 /usr/local/glp/loki/chunks
创建loki 配置文件
mkdir /usr/local/glp/loki-config.yaml
loki-config.yaml内容
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_port: 3110
grpc_server_max_recv_msg_size: 1073741824 #grpc最大接收消息值,默认4m
grpc_server_max_send_msg_size: 1073741824 #grpc最大发送消息值,默认4m
ingester:
lifecycler:
address: 127.0.0.1
ring:
kvstore:
store: inmemory
replication_factor: