Skip to content

Commit

Permalink
loki: configure
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Feb 27, 2024
1 parent 6b2a367 commit 47ebaca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions imageroot/actions/configure-module/20configure
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ with open('promtail.env', 'w') as promtail:
with open('loki.env', 'w') as lfp:
lfp.write(f"LOKI_HTTP_PORT={ports[5]}\n")
lfp.write(f"LOKI_GRPC_PORT={ports[5]}\n")
lfp.write(f"LOKI_RETENTION={request.get('loki_rentention', '180d')}\n")

with open('grafana.env', 'w') as gfp:
pass
Expand Down
2 changes: 1 addition & 1 deletion imageroot/etc/loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ query_range:
max_size_mb: 100

limits_config:
retention_period: 168h
retention_period: ${LOKI_RETENTION}

compactor:
working_directory: /data/retention
Expand Down

0 comments on commit 47ebaca

Please sign in to comment.