Skip to content

Commit

Permalink
PMM-9315 Change the directory for Loki data
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Nov 13, 2024
1 parent 89bc367 commit 7fa2537
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build/ansible/roles/loki/files/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ server:

common:
instance_addr: 0.0.0.0
path_prefix: /srv/loki
path_prefix: /srv/loki/data
storage:
filesystem:
chunks_directory: /srv/loki/chunks
rules_directory: /srv/loki/rules
chunks_directory: /srv/loki/data/chunks
rules_directory: /srv/loki/data/rules
replication_factor: 1
ring:
kvstore:
Expand Down
5 changes: 3 additions & 2 deletions build/ansible/roles/loki/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
- { name: loki, uid: 1001, comment: "Loki user", shell: "/sbin/nologin", group: pmm, }
- { name: promtail, uid: 1002, comment: "Promtail user", shell: "/sbin/nologin", group: pmm, }

- name: Create a directory for Loki
- name: Create directories for Loki
file:
path: /srv/loki
path: /srv/loki/data
state: directory
owner: pmm
group: pmm
recurse: true

- name: Copy the supervisord config file for Loki and Promtail
copy:
Expand Down

0 comments on commit 7fa2537

Please sign in to comment.