diff --git a/lotus-land-story/grafana.yml b/lotus-land-story/grafana.yml
index c7199bc..f3db773 100644
--- a/lotus-land-story/grafana.yml
+++ b/lotus-land-story/grafana.yml
@@ -3,7 +3,7 @@
vars_files:
- vars.yml
vars:
- version: 11.0.4
+ version: 11.1.5
tasks:
- name: Create Grafana dir
@@ -73,6 +73,8 @@
- /mnt/lotus-land-story/grafana/grafana.ini:/etc/grafana/grafana.ini
- /mnt/lotus-land-story/grafana/provisioning:/etc/grafana/provisioning
- grafana:/var/lib/grafana
+ env:
+ GF_INSTALL_PLUGINS: https://storage.googleapis.com/integration-artifacts/grafana-lokiexplore-app/grafana-lokiexplore-app-latest.zip;grafana-lokiexplore-app
restart_policy: unless-stopped
networks:
- name: lotus_land_story
diff --git a/lotus-land-story/loki.yml b/lotus-land-story/loki.yml
index 4aec4ed..99f7335 100644
--- a/lotus-land-story/loki.yml
+++ b/lotus-land-story/loki.yml
@@ -3,6 +3,8 @@
- name: Set up Loki
hosts: lotus-land-story
+ vars:
+ version: 2.8.0
tasks:
- name: Provision Grafana
@@ -48,6 +50,7 @@
store: inmemory
compactor:
retention_enabled: true
+ # delete_request_store: filesystem
limits_config:
retention_period: 168h
schema_config:
@@ -69,6 +72,15 @@
schema: v12
store: tsdb
+ # https://grafana.com/docs/loki/latest/operations/storage/tsdb/
+ - from: 2024-09-27
+ index:
+ period: 24h
+ prefix: index_
+ object_store: filesystem
+ schema: v12
+ store: tsdb
+
storage_config:
filesystem:
directory: /data
@@ -129,7 +141,7 @@
- name: Run Loki
community.docker.docker_container:
name: loki
- image: grafana/loki:2.8.0
+ image: grafana/loki:{{ version }}
restart: true
command: -config.file=/mnt/config/loki.yml
ports:
@@ -146,7 +158,7 @@
- name: Run Promtail
community.docker.docker_container:
name: promtail
- image: grafana/promtail:2.8.0
+ image: grafana/promtail:{{ version }}
restart: true
command: -config.file=/mnt/config/promtail.yml
ports: