forked from DevOps/deploy.stack
docs(loki): 添加Loki安装说明和配置文件
添加Loki的Docker安装文档链接和初始化配置命令 新增默认的loki-config.yaml配置文件
This commit is contained in:
45
dbSer/loki/loki-config.yaml
Normal file
45
dbSer/loki/loki-config.yaml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# Loki configuration file
|
||||||
|
# https://grafana.com/docs/loki/latest/configuration/
|
||||||
|
# version: 3.6.2
|
||||||
|
auth_enabled: false
|
||||||
|
|
||||||
|
server:
|
||||||
|
http_listen_port: 3100
|
||||||
|
|
||||||
|
common:
|
||||||
|
instance_addr: 127.0.0.1
|
||||||
|
path_prefix: /loki
|
||||||
|
storage:
|
||||||
|
filesystem:
|
||||||
|
chunks_directory: /loki/chunks
|
||||||
|
rules_directory: /loki/rules
|
||||||
|
replication_factor: 1
|
||||||
|
ring:
|
||||||
|
kvstore:
|
||||||
|
store: inmemory
|
||||||
|
|
||||||
|
schema_config:
|
||||||
|
configs:
|
||||||
|
- from: 2020-10-24
|
||||||
|
store: tsdb
|
||||||
|
object_store: filesystem
|
||||||
|
schema: v13
|
||||||
|
index:
|
||||||
|
prefix: index_
|
||||||
|
period: 24h
|
||||||
|
|
||||||
|
ruler:
|
||||||
|
alertmanager_url: http://localhost:9093
|
||||||
|
|
||||||
|
# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration
|
||||||
|
# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/
|
||||||
|
#
|
||||||
|
# Statistics help us better understand how Loki is used, and they show us performance
|
||||||
|
# levels for most users. This helps us prioritize features and documentation.
|
||||||
|
# For more information on what's sent, look at
|
||||||
|
# https://github.com/grafana/loki/blob/main/pkg/usagestats/stats.go
|
||||||
|
# Refer to the buildReport method to see what goes into a report.
|
||||||
|
#
|
||||||
|
# If you would like to disable reporting, uncomment the following lines:
|
||||||
|
#analytics:
|
||||||
|
# reporting_enabled: false
|
||||||
@@ -2,4 +2,8 @@
|
|||||||
|
|
||||||
[loki docker 安装文档](https://grafana.com/docs/loki/latest/setup/install/docker/)
|
[loki docker 安装文档](https://grafana.com/docs/loki/latest/setup/install/docker/)
|
||||||
|
|
||||||
|
```
|
||||||
|
mkdir -p loki
|
||||||
|
cd loki
|
||||||
|
wget https://raw.githubusercontent.com/grafana/loki/main/cmd/loki/loki-config.yaml -O loki-config.yaml
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user