Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/sources/configure/examples/configuration-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ common:
kvstore:
store: inmemory
replication_factor: 1
path_prefix: /tmp/loki
path_prefix: /var/lib/loki

schema_config:
configs:
Expand All @@ -37,7 +37,7 @@ schema_config:

storage_config:
filesystem:
directory: /tmp/loki/chunks
directory: /var/lib/loki/chunks

```

Expand Down Expand Up @@ -146,7 +146,7 @@ storage_config:
# This is a partial configuration to deploy Loki backed by Baidu Object Storage (BOS).
# The index will be shipped to the storage via tsdb-shipper.
common:
path_prefix: /tmp/loki
path_prefix: /var/lib/loki

schema_config:
configs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ common:
kvstore:
store: inmemory
replication_factor: 1
path_prefix: /tmp/loki
path_prefix: /var/lib/loki

schema_config:
configs:
Expand All @@ -26,4 +26,4 @@ schema_config:

storage_config:
filesystem:
directory: /tmp/loki/chunks
directory: /var/lib/loki/chunks
2 changes: 1 addition & 1 deletion docs/sources/configure/examples/yaml/5-BOS-Example.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is a partial configuration to deploy Loki backed by Baidu Object Storage (BOS).
# The index will be shipped to the storage via tsdb-shipper.
common:
path_prefix: /tmp/loki
path_prefix: /var/lib/loki

schema_config:
configs:
Expand Down
8 changes: 5 additions & 3 deletions operator/internal/manifests/var.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ const (
storageVolumeName = "storage"
rulePartsSeparator = "___"

walDirectory = "/tmp/wal"
dataDirectory = "/tmp/loki"
rulesStorageDirectory = "/tmp/rules"
walDirectory = "/var/lib/loki/wal"
dataDirectory = "/var/lib/loki"
// rulesStorageDirectory is the persistent storage path for rules.
// It aligns with the default used by the official Helm chart.
rulesStorageDirectory = "/var/lib/loki/rules"

rulerContainerName = "loki-ruler"

Expand Down