mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
The plan is to use this for creating metrics from the nginx log lines (e.g. requests per second). [1] https://grafana.com/docs/loki/latest/alert/#recording-rules
74 lines
1.4 KiB
YAML
74 lines
1.4 KiB
YAML
auth_enabled: false
|
|
|
|
server:
|
|
http_listen_address: 127.0.0.1
|
|
http_listen_port: 3100
|
|
grpc_listen_address: 127.0.0.1
|
|
grpc_listen_port: 9095
|
|
log_level: warn
|
|
|
|
common:
|
|
path_prefix: /var/lib/loki
|
|
storage:
|
|
filesystem:
|
|
chunks_directory: /var/lib/loki/chunks
|
|
rules_directory: /etc/loki/rules
|
|
replication_factor: 1
|
|
instance_addr: 127.0.0.1
|
|
ring:
|
|
instance_addr: 127.0.0.1
|
|
kvstore:
|
|
store: inmemory
|
|
|
|
ingester:
|
|
wal:
|
|
replay_memory_ceiling: 200MB
|
|
chunk_encoding: zstd
|
|
|
|
ruler:
|
|
rule_path: /var/lib/loki/rules-tmp
|
|
wal:
|
|
dir: /var/lib/loki/ruler-wal
|
|
remote_write:
|
|
enabled: true
|
|
clients:
|
|
local:
|
|
url: http://127.0.0.1:9090/api/v1/write
|
|
|
|
schema_config:
|
|
configs:
|
|
- from: 2022-06-07
|
|
store: boltdb-shipper
|
|
object_store: filesystem
|
|
schema: v12
|
|
index:
|
|
prefix: index_
|
|
period: 24h
|
|
- from: 2024-07-03
|
|
store: boltdb-shipper
|
|
object_store: filesystem
|
|
schema: v13
|
|
index:
|
|
prefix: index_
|
|
period: 24h
|
|
- from: 2024-07-04
|
|
store: tsdb
|
|
object_store: filesystem
|
|
schema: v13
|
|
index:
|
|
prefix: index_
|
|
period: 24h
|
|
|
|
compactor:
|
|
retention_enabled: true
|
|
delete_request_store: filesystem
|
|
|
|
limits_config:
|
|
max_query_series: 10000
|
|
retention_period: 31d
|
|
max_query_lookback: 31d
|
|
split_queries_by_interval: 24h
|
|
|
|
analytics:
|
|
reporting_enabled: false
|